[docs] [issue25314] Documentation: argparse's actions store_{true, false} default to False/True (undocumented)

Julien Baley report at bugs.python.org
Sun Oct 4 23:04:53 CEST 2015


New submission from Julien Baley:

The documentation of the action `store_const` states that it defaults to None. In turn, the documentation of `store_true` and `store_false` states that "[t]hese are special cases of 'store_const'", suggesting that they would also default to None.

Thankfully, `store_true` defaults to False and `store_false` to True, but this is not documented. That would be useful, as I keep seeing people writing `action='store_true' default=False` and vice-versa.

----------
assignee: docs at python
components: Documentation
files: store_true_false_doc.patch
keywords: patch
messages: 252288
nosy: Julien Baley, docs at python
priority: normal
severity: normal
status: open
title: Documentation: argparse's actions store_{true,false} default to False/True (undocumented)
type: enhancement
Added file: http://bugs.python.org/file40676/store_true_false_doc.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25314>
_______________________________________


More information about the docs mailing list