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
+7
-5
@@ -1,8 +1,10 @@
|
||||
import argparse
|
||||
from config.dtype import ArchMgrConfig
|
||||
|
||||
|
||||
def config(config: ArchMgrConfig):
|
||||
print("""
|
||||
Your config can be found at
|
||||
""")
|
||||
print(config)
|
||||
def config(args: argparse.Namespace, config: ArchMgrConfig):
|
||||
if args.conf == "show":
|
||||
print("""
|
||||
Your config can be found at
|
||||
""")
|
||||
print(config)
|
||||
Reference in new issue
Block a user