[issue28171] getopt.getopt error processing long_options

2016-09-15 Thread Mike Hagerty
Mike Hagerty added the comment: You win. It's not a bug, it's a feature ... that renders the module incorrect by any reasonable definition. argparse here I come! On Thu, Sep 15, 2016 at 3:20 PM, Steven D'Aprano wrote: > > Steven D'Aprano added the comment: > &

[issue28171] getopt.getopt error processing long_options

2016-09-15 Thread Mike Hagerty
Mike Hagerty added the comment: Huh ? "documented behaviour" ? How is silently failing to resolve input errors okay ? On Thu, Sep 15, 2016 at 3:04 PM, SilentGhost wrote: > > SilentGhost added the comment: > > It's a documented behaviour: "Long options on the

[issue28171] getopt.getopt error processing long_options

2016-09-15 Thread Mike Hagerty
New submission from Mike Hagerty: Here's the relevant code: opts, args = getopt.getopt(sys.argv[1:], "ih", ["help", "f1Hz","startdate=", "ndays="]) >main.py -i --f1H --startdat=2016-08-22 --ndays 2 Here's what getopt returns into