diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-01-30 16:40:02 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-01-31 14:12:46 -0800 |
commit | cc2871fdf28bb045e42f2aaef167eda52a076464 (patch) | |
tree | 9617878d3f79f63540269d7f945dd360d71c64b9 /alot/commands/__init__.py | |
parent | 3b22812a826790a65ed9dcc59bbe0d78256e7169 (diff) |
commands: Use a sphinx code-block
Diffstat (limited to 'alot/commands/__init__.py')
-rw-r--r-- | alot/commands/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/alot/commands/__init__.py b/alot/commands/__init__.py index 5df88747..6b84a50b 100644 --- a/alot/commands/__init__.py +++ b/alot/commands/__init__.py @@ -101,6 +101,8 @@ class registerCommand(object): definition is decorated to register it as handler for 'save' in mode 'thread' and add boolean and string arguments:: + .. code-block:: + @registerCommand('thread', 'save', arguments=[ (['--all'], {'action': 'store_true', 'help':'save all'}), (['path'], {'nargs':'?', 'help':'path to save to'})], |