Fix docstring wrapping.
This commit is contained in:
parent
3c82dc64e0
commit
5f6d291729
1 changed files with 3 additions and 3 deletions
|
@ -32,9 +32,9 @@ class NoArguments(PipeableException):
|
||||||
|
|
||||||
def ctrlc_return1(function):
|
def ctrlc_return1(function):
|
||||||
'''
|
'''
|
||||||
Apply this decorator to your argparse gateways, and if the user presses
|
Apply this decorator to your argparse gateways or main function, and if the
|
||||||
ctrl+c then the gateway will return 1 as its status code without the
|
user presses ctrl+c then the gateway will return 1 as its status code
|
||||||
stacktrace appearing.
|
without the stacktrace appearing.
|
||||||
|
|
||||||
This helps me avoid wrapping the entire function in a try-except block.
|
This helps me avoid wrapping the entire function in a try-except block.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue