Created
October 21, 2019 02:40
-
-
Save alanyee/14d274f1f9a0f4765447bc517bbff6bb to your computer and use it in GitHub Desktop.
Suppress help from usage statement
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
parser = argparse.ArgumentParser(prog='PROG', add_help=False) | |
parser.add_argument('--help', '-h', action='help', help=argparse.SUPPRESS) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment