diff options
-rw-r--r-- | ranger/core/main.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py index 69fd6909..3f4f068a 100644 --- a/ranger/core/main.py +++ b/ranger/core/main.py @@ -119,7 +119,7 @@ def main( FileManagerAware.fm_set(fm) load_settings(fm, args.clean) - if args.choosedir: + if args.show_only_dirs: from ranger.container.directory import InodeFilterConstants fm.settings.global_inode_type_filter = InodeFilterConstants.DIRS @@ -278,6 +278,8 @@ def parse_arguments(): parser.add_option('--choosedir', type='string', metavar='PATH', help="Makes ranger act like a directory chooser. When ranger quits" ", it will write the name of the last visited directory to PATH") + parser.add_option('--show-only-dirs', action='store_true', + help="Show only directories, no files or links") parser.add_option('--selectfile', type='string', metavar='filepath', help="Open ranger with supplied file selected.") parser.add_option('--list-unused-keys', action='store_true', |