def build_parser ( ) : parser = argparse . ArgumentParser ( "Release packages to pypi" ) parser . add_argument ( '--check' , '-c' , action = "store_true" , help = "Do a dry run without uploading" ) parser . add_argument ( 'component' , help = "The component to release as component-version" ) return parser
python argparse with different delimiter
Build argument parsers .
def build_parser():
    """Build argument parsers."""

    parser = argparse.ArgumentParser("Release packages to pypi")
    parser.add_argument('--check', '-c', action="store_true", help="Do a dry run without uploading")
    parser.add_argument('component', help="The component to release as component-version")
    return parser