[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2011-08-05 Thread Éric Araujo
Éric Araujo added the comment: There is. Someone wanting to help could reply to the question I asked :) -- type: feature request -> behavior versions: +Python 3.3 ___ Python tracker ___

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2011-08-04 Thread wrobell
wrobell added the comment: is there a chance to fix this issue? -- nosy: +wrobell ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: Patch looks good, thanks! Does it integrate Catherine’s tests? -- components: +Library (Lib) stage: needs patch -> patch review ___ Python tracker ___

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2010-11-20 Thread Daniel Albeseder
Daniel Albeseder added the comment: My attached patch adds the "--" between the optionals and the arguments, if there are optionals which have variable length and at least some positional argument can be provided. Patch is for python 3.2 svn revision 86553. -- nosy: +Kotan Added file

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Looks good to me. Do you want to propose a code patch too, and/or more tests for non-simple cases? -- versions: +Python 2.7, Python 3.2 ___ Python tracker __

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2010-08-12 Thread Michael . Elsdörfer
Changes by Michael.Elsdörfer : -- nosy: +elsdoerfer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2010-08-02 Thread Catherine Devlin
Catherine Devlin added the comment: Here's a unit test for the simplest cases. -- keywords: +patch nosy: +catherine Added file: http://bugs.python.org/file18328/test_pos_after_var_args.patch ___ Python tracker

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2010-07-23 Thread Éric Araujo
Éric Araujo added the comment: I read too fast, I’m sorry for that. -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list maili

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2010-07-23 Thread Steven Bethard
Steven Bethard added the comment: This is definitely a different bug from the one you just marked it as a duplicate of. -- resolution: duplicate -> stage: committed/rejected -> needs patch status: closed -> open superseder: argparse does not accept options taking arguments beginning w

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2010-07-23 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> argparse does not accept options taking arguments beginning with dash (regression from optparse) ___ Python tracker

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2010-07-23 Thread Steven Bethard
New submission from Steven Bethard : [From the old argparse tracker: http://code.google.com/p/argparse/issues/detail?id=20] You can't follow a nargs='+' optional argument with a positional argument: >>> import argparse >>> parser = argparse.ArgumentParser(prog='PROG') >>> parser.add_argument('