I want to have some options in argparse module such as --pm-export however when I try to use it like args.pm-export I get the error that there is not attribute pm. How can I get around this issue? Is it possible to have - in command line options?
I want to have some options in argparse module such as –pm-export however when
Share
From the
argparsedocs:So you should be using
args.pm_export.