summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/__main__.py17
1 files changed, 5 insertions, 12 deletions
diff --git a/ranger/__main__.py b/ranger/__main__.py
index 32f28e12..674ad8f6 100644
--- a/ranger/__main__.py
+++ b/ranger/__main__.py
@@ -31,24 +31,19 @@ def parse_arguments():
 
 	parser.add_option('-d', '--debug', action='store_true',
 			help="activate debug mode")
-
 	parser.add_option('-c', '--clean', action='store_true',
 			help="don't touch/require any config files. ")
-
-	parser.add_option('-r', '--confdir', dest='confdir', type='string',
-			default=DEFAULT_CONFDIR,
+	parser.add_option('-r', '--confdir', type='string',
+			metavar='dir', default=DEFAULT_CONFDIR,
 			help="the configuration directory. (%default)")
-
-	parser.add_option('-m', '--mode', type='int', dest='mode', default=0,
+	parser.add_option('-m', '--mode', type='int', default=0, metavar='n',
 			help="if a filename is supplied, run it with this mode")
-
-	parser.add_option('-f', '--flags', type='string', dest='flags', default='',
+	parser.add_option('-f', '--flags', type='string', default='',
+			metavar='string',
 			help="if a filename is supplied, run it with these flags.")
 
 	options, positional = parser.parse_args()
-
 	arg = OpenStruct(options.__dict__, targets=positional)
-
 	arg.confdir = os.path.expanduser(arg.confdir)
 
 	if not arg.clean:
@@ -61,9 +56,7 @@ def parse_arguments():
 				print("To run ranger without the need for configuration files")
 				print("use the --clean option.")
 				raise SystemExit()
-
 		sys.path.append(arg.confdir)
-
 	return arg
 
 def main():
am <vc@akkartik.com> 2015-07-03 19:38:21 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2015-07-03 19:38:21 -0700 1699 - first-class recipe types' href='/akkartik/mu/commit/037recipe.cc?h=main&id=7f73795cf5a5722dd6c05bee1e7c8c3f8eded8da'>7f73795c ^
235958e8 ^
363be37f ^
7f73795c ^





363be37f ^
7f73795c ^

e4630643 ^








7f73795c ^




e4630643 ^
7f73795c ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61