From c175a04f88557b865978fb6cacc9e8844d37edeb Mon Sep 17 00:00:00 2001 From: Steve Kuznetsov Date: Sat, 28 Jan 2017 17:02:02 -0500 Subject: [PATCH] Parse options in `tito init` Previously, the `optparse` option parsing was not being done in the call to `tito init`, which led to CLI invocations that used `--help` not getting the helptext and instead getting the normal output of `tito init`. Signed-off-by: Steve Kuznetsov --- src/tito/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tito/cli.py b/src/tito/cli.py index 0b01041..7ec6932 100644 --- a/src/tito/cli.py +++ b/src/tito/cli.py @@ -683,6 +683,7 @@ class InitModule(BaseCliModule): # DO NOT CALL BaseCliModule.main(self) # we are initializing tito to work in this module and # calling main will result in a configuration error. + (self.options, self.args) = self.parser.parse_args(argv) should_commit = False rel_eng_dir = os.path.join(find_git_root(), '.tito')