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,12 @@
|
||||
import argparse as ap
|
||||
|
||||
|
||||
def add_parser(sp: ap._SubParsersAction[ap.ArgumentParser]):
|
||||
pull = sp.add_parser("pull", help="pull changes from git remote")
|
||||
pull.add_argument("--rebase", "-r", help="execute rebase", action="store_true")
|
||||
pull.add_argument(
|
||||
"--apply",
|
||||
"-a",
|
||||
help="also apply the changes to the local system",
|
||||
action="store_true",
|
||||
)
|
||||
Reference in new issue
Block a user