diff options
author | hut <hut@lavabit.com> | 2013-02-17 22:52:08 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-02-17 22:54:23 +0100 |
commit | 279a30238aa47f2bd37abcb40ecb907004e4bd8c (patch) | |
tree | 5541b9acc54858b8c72b6fc30a844fd9ece0af29 /ranger | |
parent | 7e21fb55d06fda57db1f300840498a2855477cc5 (diff) | |
download | ranger-279a30238aa47f2bd37abcb40ecb907004e4bd8c.tar.gz |
core.main: made --mode and --flag deprecated
Again, use rifle as a file launcher instead
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/main.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py index a082b8fb..809c3aae 100644 --- a/ranger/core/main.py +++ b/ranger/core/main.py @@ -64,13 +64,16 @@ def main(): targets = arg.targets or ['.'] target = targets[0] - if arg.targets: + if arg.targets: # COMPAT if target.startswith('file://'): target = target[7:] if not os.access(target, os.F_OK): print("File or directory doesn't exist: %s" % target) return 1 elif os.path.isfile(target): + sys.stderr.write("Warning: Using ranger as a file launcher is " + "deprecated.\nPlease use the standalone file launcher " + "'rifle' instead.\n") def print_function(string): print(string) from ranger.ext.rifle import Rifle @@ -191,10 +194,9 @@ def parse_arguments(): metavar='dir', default=default_confdir, help="the configuration directory. (%default)") parser.add_option('-m', '--mode', type='int', default=0, metavar='n', - help="if a filename is supplied, run it with this mode") + help=SUPPRESS_HELP) # COMPAT parser.add_option('-f', '--flags', type='string', default='', - metavar='string', - help="if a filename is supplied, run it with these flags.") + metavar='string', help=SUPPRESS_HELP) # COMPAT parser.add_option('--choosefile', type='string', metavar='TARGET', help="Makes ranger act like a file chooser. When opening " "a file, it will quit and write the name of the selected " |