mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
extend arguments
This commit is contained in:
+2
-4
@@ -1,5 +1,3 @@
|
||||
import argparse
|
||||
arg = '-repeat'
|
||||
|
||||
parser = argparse.ArgumentParser(prog='myprogram')
|
||||
_ = parser.add_argument('--foo', help='foo of the %(prog)s program')
|
||||
print(vars(parser.parse_args()))
|
||||
print(arg[:arg.rfind('-')+1])
|
||||
Reference in New Issue
Block a user