diff --git a/watcherclient/shell.py b/watcherclient/shell.py index 4f2e113..1885853 100644 --- a/watcherclient/shell.py +++ b/watcherclient/shell.py @@ -203,7 +203,9 @@ class WatcherShell(app.App): LOG.info("END return value: %s", ret_val) -def main(argv=sys.argv[1:]): +def main(argv=None): + if argv is None: + argv = sys.argv[1:] watcher_app = WatcherShell() return watcher_app.run(argv)