diff options
-rw-r--r-- | ranger/core/main.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py index c3a3d76b..eda11b5b 100644 --- a/ranger/core/main.py +++ b/ranger/core/main.py @@ -108,13 +108,13 @@ def main(): from ranger.ext import curses_interrupt_handler curses_interrupt_handler.install_interrupt_handler() - if arg.selectfile: - fm.select_file(arg.selectfile) - # Run the file manager fm.initialize() fm.ui.initialize() + if arg.selectfile: + fm.select_file(arg.selectfile) + if arg.cmd: for command in arg.cmd: fm.execute_console(command) |