Archived
feat(cli): Better organized CLI arg parsing
This commit is contained in:
1 parent
e24eb647ca
commit
78eecfc81a
13 files changed
+109
-46
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import argparse as ap
|
||||
|
||||
|
||||
def add_parser(sp: ap._SubParsersAction[ap.ArgumentParser]):
|
||||
commit = sp.add_parser(
|
||||
"commit", help="apply pending changes and commit to git repo"
|
||||
)
|
||||
commit.add_argument(
|
||||
"-f", "--force", help="force apply (skips prompts)", action="store_true"
|
||||
)
|
||||
commit.add_argument(
|
||||
"--no-render", "-r", help="do not re-render renderables", action="store_true"
|
||||
)
|
||||
Reference in new issue
Block a user