[issue22050] argparse: read nargs > 1 options from file doesn't work

2014-07-23 Thread Chris Bruner
Chris Bruner added the comment: Oops, my mistake: had multiple '-t' in file, but not an "action=append". Your version works just fine. Sorry for the confusion, and thank you for the correction! -- ___ Python tracker

[issue22050] argparse: read nargs > 1 options from file doesn't work

2014-07-23 Thread Chris Bruner
Chris Bruner added the comment: Tried the format you gave. Still doesn't work. Same error message: bernoulli:myclu cwbrune$ argparse_nargs_file_bug.py usage: argparse_nargs_file_bug.py [-h] [-t N N N] argparse_nargs_file_bug.py: error: argument -t/--triple: expected 3 argument(s) bernoulli:mycl

[issue22050] argparse: read nargs > 1 options from file doesn't work

2014-07-23 Thread R. David Murray
R. David Murray added the comment: Your input.opts file is in the wrong format. it should read --triple 1 2 3 -t 2 3 32 -- nosy: +r.david.murray resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue22050] argparse: read nargs > 1 options from file doesn't work

2014-07-23 Thread Chris Bruner
New submission from Chris Bruner: When reading options from a file, argparse should read all values from each line. Instead, it complains of there not being enough options. python file: #!/usr/bin/env python import argparse p = argparse.ArgumentParser(description='Reproduce argparse nargs fil