feat(cli): Better organized CLI arg parsing
This commit is contained in:
+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