diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-01-25 09:27:25 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-01-25 10:27:53 -0800 |
commit | 0ec97d98e82d10024419199b93c1d13a1cedc5eb (patch) | |
tree | 354b6e27dc4270849cb9a34617a411068edc637a /alot/commands/globals.py | |
parent | c67a62ec0804a588df577360e80922e2a2ffb2ef (diff) |
Move utils/booleanaction.py to utils/argparse.py
This module is going to be enhanced with additional components in later
patches in this series, so it needs a more generic name.
Diffstat (limited to 'alot/commands/globals.py')
-rw-r--r-- | alot/commands/globals.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py index d05bdfcc..3e9c4461 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -33,7 +33,7 @@ from ..widgets.utils import DialogBox from ..db.errors import DatabaseLockedError from ..db.envelope import Envelope from ..settings import settings -from ..utils.booleanaction import BooleanAction +from ..utils import argparse as cargparse MODE = 'global' @@ -172,11 +172,11 @@ class RefreshCommand(Command): @registerCommand( MODE, 'shellescape', arguments=[ - (['--spawn'], {'action': BooleanAction, 'default': None, + (['--spawn'], {'action': cargparse.BooleanAction, 'default': None, 'help': 'run in terminal window'}), - (['--thread'], {'action': BooleanAction, 'default': None, + (['--thread'], {'action': cargparse.BooleanAction, 'default': None, 'help': 'run in separate thread'}), - (['--refocus'], {'action': BooleanAction, + (['--refocus'], {'action': cargparse.BooleanAction, 'help': 'refocus current buffer after command ' 'has finished'}), (['cmd'], {'help': 'command line to execute'})], @@ -403,7 +403,7 @@ class CallCommand(Command): @registerCommand(MODE, 'bclose', arguments=[ (['--redraw'], - {'action': BooleanAction, + {'action': cargparse.BooleanAction, 'help': 'redraw current buffer after command has finished'}), (['--force'], {'action': 'store_true', 'help': 'never ask for confirmation'})]) @@ -685,7 +685,7 @@ class HelpCommand(Command): (['--attach'], {'nargs': '+', 'help': 'attach files'}), (['--omit_signature'], {'action': 'store_true', 'help': 'do not add signature'}), - (['--spawn'], {'action': BooleanAction, 'default': None, + (['--spawn'], {'action': cargparse.BooleanAction, 'default': None, 'help': 'spawn editor in new terminal'}), (['rest'], {'nargs': '*'}), ]) |