[issue45673] argparse error with option with optional value
Paolo Benvenuto added the comment: > As a general rule, don't use `nargs` like this where there's ambiguity as to > how many values will be allocated to the argument. What could I use instead of nargs? -- ___ Python
[issue45673] argparse error with option with optional value
New submission from Paolo Benvenuto : I'm using argparse with this code: parser = argparse.ArgumentParser( description='Scan a media tree in order to generate cache files suitable for showing a beautiful web gallery', ) parser.add_argument( "config_file_or_a