diff options
author | nfnty <git@nfnty.se> | 2017-02-01 22:47:18 +0100 |
---|---|---|
committer | nfnty <git@nfnty.se> | 2017-02-01 22:47:18 +0100 |
commit | 17f87391a2d1e9c123ab9e3fdc626e8279d94f1d (patch) | |
tree | eb672029dd3139afd32ed8116f260b407026520d | |
parent | 096ebc82d6084b2aafb6da8c77f2f090c9621f69 (diff) | |
download | ranger-17f87391a2d1e9c123ab9e3fdc626e8279d94f1d.tar.gz |
ranger.main: Remove deprecated COMPAT args
-rw-r--r-- | ranger/core/main.py | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py index 3c7ae13b..80a16000 100644 --- a/ranger/core/main.py +++ b/ranger/core/main.py @@ -58,7 +58,7 @@ def main( if args.copy_config is not None: fm = FM() fm.copy_config_files(args.copy_config) - return 1 if args.fail_unless_cd else 0 # COMPAT + return 0 if args.list_tagged_files: fm = FM() try: @@ -75,7 +75,7 @@ def main( sys.stdout.write(line[2:]) elif line and '*' in args.list_tagged_files: sys.stdout.write(line) - return 1 if args.fail_unless_cd else 0 # COMPAT + return 0 SettingsAware.settings_set(Settings()) @@ -116,7 +116,7 @@ def main( for key in range(33, 127): if key not in maps: print(chr(key)) - return 1 if args.fail_unless_cd else 0 # COMPAT + return 0 if not sys.stdin.isatty(): sys.stderr.write("Error: Must run ranger from terminal\n") @@ -228,12 +228,6 @@ def parse_arguments(): parser.add_option('--copy-config', type='string', metavar='which', help="copy the default configs to the local config directory. " "Possible values: all, rc, rifle, commands, commands_full, scope") - parser.add_option('--fail-unless-cd', action='store_true', - help=SUPPRESS_HELP) # COMPAT - parser.add_option('-m', '--mode', type='int', default=0, metavar='n', - help=SUPPRESS_HELP) # COMPAT - parser.add_option('-f', '--flags', type='string', default='', - metavar='string', help=SUPPRESS_HELP) # COMPAT parser.add_option('--choosefile', type='string', metavar='PATH', help="Makes ranger act like a file chooser. When opening " "a file, it will quit and write the name of the selected " @@ -283,11 +277,6 @@ def parse_arguments(): if args.choosedir: args.choosedir = choose_init('dir') - if args.fail_unless_cd: # COMPAT - sys.stderr.write("Warning: The option --fail-unless-cd is deprecated.\n" - "It was used to facilitate using ranger as a file launcher.\n" - "Now, please use the standalone file launcher 'rifle' instead.\n") - return args |