how to pass multiple flags in argparse python
how to pass multiple flags in argparse python Question: I am trying to pass multiple flags, basically two flags. This is what my code looks like parser.add_argument(‘–naruto’, action=’store_true’) parser.add_argument(‘–transformers’, action=’store_true’) parser.add_argument(‘–goku’, action=’store_true’) parser.add_argument(‘–anime’, action=’store_true’) I know action=’store_true’ makes it a flag. basically in the command line I will pass the arguments like => nameOfTheScript.py –goku …