aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pwrapper_installed')
-rwxr-xr-xbin/pwrapper_installed6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/pwrapper_installed b/bin/pwrapper_installed
index 2aea117df..4a1187b08 100755
--- a/bin/pwrapper_installed
+++ b/bin/pwrapper_installed
@@ -28,7 +28,9 @@ if __name__ == '__main__':
raise
sys.stderr.write('Add --debug to the commandline for a traceback.\n')
sys.exit(1)
- subcommands = getattr(script, 'commandline_commands', None)
+ subcommands = getattr(script, 'argparse_parser', None)
if subcommands is None:
- subcommands = {None: (script.OptionParser, script.main)}
+ subcommands = getattr(script, 'commandline_commands', None)
+ if subcommands is None:
+ subcommands = {None: (script.OptionParser, script.main)}
commandline.main(subcommands)