What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-06 11:49:04
argparse multiple arguments as list
import argparse parser = argparse.ArgumentParser() # By default it will fail with multiple arguments. parser.add_argument('--default') # Telling the type to be a list will also fail for multiple arguments, # but give incorrect results for a single argu... Add solution
Best helpers
Ranking is empty