mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
WIP: Try to fix #122
This commit is contained in:
parent
bfa2f56e1f
commit
324a8fe904
1 changed files with 4 additions and 2 deletions
|
@ -39,7 +39,6 @@ class BlueprintApp:
|
|||
def main(self):
|
||||
self.parser = argparse.ArgumentParser()
|
||||
self.subparsers = self.parser.add_subparsers(metavar="command")
|
||||
self.parser.set_defaults(func=self.cmd_help)
|
||||
|
||||
compile = self.add_subcommand(
|
||||
"compile", "Compile blueprint files", self.cmd_compile
|
||||
|
@ -78,7 +77,10 @@ class BlueprintApp:
|
|||
|
||||
try:
|
||||
opts = self.parser.parse_args()
|
||||
if "func" in opts:
|
||||
opts.func(opts)
|
||||
else:
|
||||
self.cmd_help(opts)
|
||||
except SystemExit as e:
|
||||
raise e
|
||||
except KeyboardInterrupt:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue