Fix docstring wrapping.

master
voussoir 2021-09-23 22:39:09 -07:00
parent 3c82dc64e0
commit 5f6d291729
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 3 additions and 3 deletions

View File

@ -32,9 +32,9 @@ class NoArguments(PipeableException):
def ctrlc_return1(function):
'''
Apply this decorator to your argparse gateways, and if the user presses
ctrl+c then the gateway will return 1 as its status code without the
stacktrace appearing.
Apply this decorator to your argparse gateways or main function, and if the
user presses ctrl+c then the gateway will return 1 as its status code
without the stacktrace appearing.
This helps me avoid wrapping the entire function in a try-except block.