[issue45673] argparse error with option with optional value

2021-11-02 Thread Paolo Benvenuto
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 tracker

[issue45673] argparse error with option with optional value

2021-10-29 Thread Paolo Benvenuto
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_album_path"