summaryrefslogtreecommitdiff
path: root/alot/utils/argparse.py
Commit message (Collapse)AuthorAge
* main: allow -c to be used multiple timesAnton Khirnov2023-03-16
| | | | Merge values from multiple files.
* argparse: simplify ValidatedStoreAction.__init__Anton Khirnov2023-03-16
|
* Remove old __future__ importsLucas Hoffmann2018-06-19
| | | | They are not needed for python >= 3.0.
* py3k: remove basestring and unicode.Dylan Baker2018-03-01
| | | | This probably isn't completely right, but it's a start.
* sanitize parameter for thread mode command 'indent'Patrick Totzke2017-11-05
| | | | | | this introduces a new argparse validation check that makes sure a parameter is '+', '-', or an integer, and uses this check for the 'indent' thread mode command.
* alot/utils/argparse: Add a new argparse validators infrastructureDylan Baker2017-01-25
| | | | | | | | | | | | | This adds a new argparse.Action class validates input using a new keyword argument that takes a validator function. This will allow us to replace the use the type keyword as a validator, which is both more correct, and frees up the type keyword to do what it's actually meant to do, convert the input from one type to another. It also adds 3 new validator functions that will be enabled in the next commit. One that checks for a required file, one that checks for an optional directory, and one that looks for a required file, fifo, or block special device (/dev/null).
* utils/argparse.py: Various cleanupsDylan Baker2017-01-25
| | | | | Hide internal values from export and add a message to the TypeError raised by the if the argument isn't in _TRUISH or _FALSISH.
* Move utils/booleanaction.py to utils/argparse.pyDylan Baker2017-01-25
This module is going to be enhanced with additional components in later patches in this series, so it needs a more generic name.