summaryrefslogtreecommitdiff
path: root/alot/__main__.py
Commit message (Collapse)AuthorAge
* Release config files after command line parsingLucas Hoffmann2017-01-10
| | | | | This was tested with lsof(8) and the files are not open when alot is up and running.
* Move default notmuch config path to argparse parser setupLucas Hoffmann2017-01-10
| | | | | | | | | This is only possible for the notmuch config file and not for the alot config file as the former is strictly required but the latter is not. If the latter does not exist it will be detected by the argument parser. If the former is not given on the command line the parser will return `None` and we can manually check if the default config file exists and else just skip the alot config file.
* Expose more internal commands on the command lineLucas Hoffmann2017-01-10
|
* Remove unneeded expanduser callsLucas Hoffmann2017-01-10
| | | | Fixes the -n option.
* Document subcommands in help outputLucas Hoffmann2017-01-10
|
* Use the internal parser for initial command line parsingLucas Hoffmann2017-01-10
| | | | | This again sightly changes the help output and also the possible options for the compose subcommand.
* Simplify finding of config fileLucas Hoffmann2017-01-10
| | | | | Especially let the command line parser check if a file given on the command line exists.
* Replace twisted command line parsing with argparseLucas Hoffmann2017-01-10
| | | | | The command line interface is copied as directly as possible. But at least the help output is formatted differently.
* Revert "Fix values to methods in __main__"Dylan Baker2016-12-28
| | | | | | This reverts commit 581ed2987bd456d2894637a30bb5a14a4caa5f9b. Fixes #942
* Use dict's iter methodsDylan Baker2016-12-21
| | | | | | | | This patch replaces a number of uses of dict.items, dict.values, and dict.keys with their iterative siblings. The advantage of using the iterator version is that they don't copy the keys, values, or items, but simply return references. This reduces memory usage and may speed up the these operations a bit.
* Fix values to methods in __main__Dylan Baker2016-12-21
| | | | | several of these don't take a self argument. In one case self is needed, in the others decorating them as static methods fixes the behavior.
* Fix except syntaxLucas Hoffmann2016-12-09
|
* add __main__.pyPatrick Totzke2015-12-17