mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
fix: Make command
required
This solves a weird issue where the help function is executed everytime even when we specify a command. Fixes #122.
This commit is contained in:
parent
bfa2f56e1f
commit
c683254761
1 changed files with 1 additions and 2 deletions
|
@ -38,8 +38,7 @@ LIBDIR = None
|
|||
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)
|
||||
self.subparsers = self.parser.add_subparsers(metavar="command", required=True)
|
||||
|
||||
compile = self.add_subcommand(
|
||||
"compile", "Compile blueprint files", self.cmd_compile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue