moved command line args handling into function

This commit is contained in:
2025-02-14 22:13:45 +01:00
parent 923f9b5661
commit f178971178

3
snek
View File

@ -2,6 +2,7 @@
import argparse
def handle_clargs():
parser = argparse.ArgumentParser(
description="🐍",
# formatter_class=argparse.ArgumentDefaultsHelpFormatter
@ -25,6 +26,7 @@ parser_fork.add_argument("name", help=msg)
parser_bless.add_argument("name", help=msg)
clargs = parser.parse_args()
return clargs
@ -165,6 +167,7 @@ def maxstrlen(seq):
if __name__ == "__main__":
clargs = handle_clargs()
conda = Conda(root=clargs.root, exe=clargs.exe)
dispatch = {