User Tools

Site Tools


argparse_notes

This is an old revision of the document!


--feature and --no-feature

parser.add_argument(
    "--header", action='store_true',
    dest='header',
    help='use 1st line as header')
parser.add_argument(
    "--no-header", action='store_false',
    dest='header',
    help='assumes that there is no header')
parser.set_defaults(header=True)
argparse_notes.1707775255.txt.gz · Last modified: 2024/02/12 22:00 by raju