[issue22317] action argument is not documented in argparse add_subparser() docs

2015-01-19 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the patch, Mike.

Anne, thank you for the ticket triage! The only missing place was the 
ArgumentParser.add_subparsers() documentation: 
https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.add_subparsers

--
nosy: +berker.peksag
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22317] action argument is not documented in argparse add_subparser() docs

2015-01-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 430236ef507b by Berker Peksag in branch '2.7':
Issue #22317: Document the action parameter in ArgumentParser.add_subparsers() 
docs.
https://hg.python.org/cpython/rev/430236ef507b

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22317] action argument is not documented in argparse add_subparser() docs

2015-01-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 350b8e109c42 by Berker Peksag in branch '3.4':
Issue #22317: Document the action parameter in ArgumentParser.add_subparsers() 
docs.
https://hg.python.org/cpython/rev/350b8e109c42

New changeset 4709290253e3 by Berker Peksag in branch 'default':
Issue #22317: Document the action parameter in ArgumentParser.add_subparsers() 
docs.
https://hg.python.org/cpython/rev/4709290253e3

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22317] action argument is not documented in argparse add_subparser() docs

2015-01-18 Thread Anne Moroney

Anne Moroney added the comment:

This ticket's patch appears to have already been merged, yet it is open? 

On 2.7.9 docs [1], it has the exact language. The tutorial page [2] has a nice 
description as well. Finding this ticket really helped me understand argparse a 
bit better, and now I vote to close :).
AnneTheAgile, inspired by CodeTriage

1.[] ; ; ; ; ; ; ; ; ; ;  X.15.4. argparse — Parser for command-line options, 
arguments and sub-commands — Python 2.7.9 documentation
https://docs.python.org/2/library
action - The basic type of action to be taken when this argument is encountered 
at the command line.

2.[] ; ; ; ; ; ; ; ; ; ;  X.Argparse Tutorial — Python 2.7.9 documentation
https://docs.python.org/2/howto/argparse.html
we now specify a new keyword, action, and give it the value "store_true". This 
means that, if the option is specified, assign the value True to args.verbose. 
Not specifying it implies False.

3.[] ; ;List of all types of 'action', including customizable ; ; ; ; ; ; ; ;  
X.15.4. argparse — Parser for command-line options, arguments and sub-commands 
— Python 2.7.9 documentation
https://docs.python.org/2/library/argparse.html#action
action="store_true"
action='store_false'
action="count"
action='store_const'
action='append'
action='version'
action=CustomFooAction

--
nosy: +AnneTheAgile

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22317] action argument is not documented in argparse add_subparser() docs

2014-11-02 Thread Mike Short

Changes by Mike Short :


Added file: http://bugs.python.org/file37116/argparse27.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22317] action argument is not documented in argparse add_subparser() docs

2014-11-02 Thread Mike Short

Mike Short added the comment:

I am uploading patches for both 2.7 as well as latest (3.x).  I only added the 
action verbiage itself in, but would it be beneficial to also add in links to 
more detailed descriptions similar to what is done in 
ArgumentParser.add_argument earlier in the argparse page?

--
keywords: +patch
Added file: http://bugs.python.org/file37115/argparse.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22317] action argument is not documented in argparse add_subparser() docs

2014-11-02 Thread Mike Short

Changes by Mike Short :


--
nosy: +Mike.Short

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22317] action argument is not documented in argparse add_subparser() docs

2014-11-02 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +paul.j3
versions: +Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22317] action argument is not documented in argparse add_subparser() docs

2014-11-02 Thread Ezio Melotti

Changes by Ezio Melotti :


--
keywords: +easy
nosy: +bethard
stage:  -> needs patch
type:  -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22317] action argument is not documented in argparse add_subparser() docs

2014-08-31 Thread Ubik

New submission from Ubik:

See: 
https://docs.python.org/2/library/argparse.html#argparse.ArgumentParser.add_subparsers

--
assignee: docs@python
components: Documentation
messages: 226190
nosy: Ubik, docs@python
priority: normal
severity: normal
status: open
title: action argument is not documented in argparse add_subparser() docs
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com