Python argparse
This is a template of argparse
.
1 | import argparse |
or
1 | parser = argparse.ArgumentParser(description="description of this script") |
Pass boolean flag via
1 | parser.add_argument('--flag', action="store_true", help="this is your boolean value") |
python script.py -h
to show the help of parameters.