I could use argparse to add command line arguments in the form of
-i <INPUT>
or--input <INPUT>
.
I want to instead have the command be in the form of input=<INPUT>
.
Code
What I currently have:
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-i', '--input', help = "Input is a required field", required = True)
Issue
When I change '--input'
to 'input='
it doesn't work.
Question
How to specify the format so that 'input=' followed by the input string can be given as valid command line argument?