summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@hut.pm>2018-01-28 17:28:25 +0100
committerhut <hut@hut.pm>2018-01-28 17:28:56 +0100
commit46039fd03f0ca8ac67f5007d1ec6e8896c67f22c (patch)
tree1fde4e1157f55b368f1dc06a20e22cccdd28ae48
parent1b9eb624d26e8303a37ed764a232c658a2448984 (diff)
downloadranger-46039fd03f0ca8ac67f5007d1ec6e8896c67f22c.tar.gz
core.main: rearranged command line items
-rw-r--r--doc/ranger.14
-rw-r--r--doc/ranger.pod4
-rw-r--r--ranger/core/main.py4
3 files changed, 6 insertions, 6 deletions
diff --git a/doc/ranger.1 b/doc/ranger.1
index d0c0b7b9..53967021 100644
--- a/doc/ranger.1
+++ b/doc/ranger.1
@@ -139,8 +139,8 @@ ranger \- visual file manager
 .SH "SYNOPSIS"
 .IX Header "SYNOPSIS"
 \&\fBranger\fR [\fB\-\-version\fR] [\fB\-\-help\fR] [\fB\-\-debug\fR] [\fB\-\-clean\fR]
-[\fB\-\-cachedir\fR=\fIdirectory\fR] [\fB\-\-confdir\fR=\fIdirectory\fR] [\fB\-\-datadir\fR=\fIdirectory\fR]
-[\fB\-\-copy\-config\fR=\fIwhich\fR]
+[\fB\-\-cachedir\fR=\fIdirectory\fR] [\fB\-\-confdir\fR=\fIdirectory\fR]
+[\fB\-\-datadir\fR=\fIdirectory\fR] [\fB\-\-copy\-config\fR=\fIwhich\fR]
 [\fB\-\-choosefile\fR=\fItarget\fR] [\fB\-\-choosefiles\fR=\fItarget\fR]
 [\fB\-\-choosedir\fR=\fItarget\fR] [\fB\-\-selectfile\fR=\fIfilepath\fR]
 [\fB\-\-show\-only\-dirs\fR]
diff --git a/doc/ranger.pod b/doc/ranger.pod
index cc77983a..ee0ba846 100644
--- a/doc/ranger.pod
+++ b/doc/ranger.pod
@@ -8,8 +8,8 @@ ranger - visual file manager
 =head1 SYNOPSIS
 
 B<ranger> [B<--version>] [B<--help>] [B<--debug>] [B<--clean>]
-[B<--cachedir>=I<directory>] [B<--confdir>=I<directory>] [B<--datadir>=I<directory>]
-[B<--copy-config>=I<which>]
+[B<--cachedir>=I<directory>] [B<--confdir>=I<directory>]
+[B<--datadir>=I<directory>] [B<--copy-config>=I<which>]
 [B<--choosefile>=I<target>] [B<--choosefiles>=I<target>]
 [B<--choosedir>=I<target>] [B<--selectfile>=I<filepath>]
 [B<--show-only-dirs>]
diff --git a/ranger/core/main.py b/ranger/core/main.py
index 0148e2b5..a96b24a1 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -278,10 +278,10 @@ 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('--show-only-dirs', action='store_true',
+                      help="Show only directories, no files or links")
     parser.add_option('--list-unused-keys', action='store_true',
                       help="List common keys which are not bound to any action.")
     parser.add_option('--list-tagged-files', type='string', default=None,