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

2011-08-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org

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

2011-08-04 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: is there a chance to fix this issue? -- nosy: +wrobell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9338 ___

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

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

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

2010-11-20 Thread Daniel Albeseder
Daniel Albeseder ko...@gmx.at 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

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

2010-11-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org

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

2010-08-12 Thread Michael . Elsdörfer
Changes by Michael.Elsdörfer mich...@elsdoerfer.info: -- nosy: +elsdoerfer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9338 ___ ___

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

2010-08-02 Thread Catherine Devlin
Catherine Devlin fredv8vi...@liquidid.net 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 Steven Bethard
New submission from Steven Bethard steven.beth...@gmail.com: [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')

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

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

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

2010-07-23 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com 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

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

2010-07-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I read too fast, I’m sorry for that. -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9338 ___