Re: Q: argparse.add_argument()

2023-03-18 Thread Thomas Passin
On 3/18/2023 10:52 PM, Gisle Vanem via Python-list wrote: Thomas Passin wrote: So please, try to think out how your questions will seem to the reader, and be clear about what you are asking.  You may not know the terminology that some other people use, but don't let that stop you from being

Re: Q: argparse.add_argument()

2023-03-18 Thread Gisle Vanem via Python-list
Thomas Passin wrote: So please, try to think out how your questions will seem to the reader, and be clear about what you are asking.  You may not know the terminology that some other people use, but don't let that stop you from being clear about what you really need to find out.  Including

Re: Q: argparse.add_argument()

2023-03-18 Thread Thomas Passin
On 3/18/2023 4:05 PM, Chris Angelico wrote: On Sun, 19 Mar 2023 at 06:35, Gisle Vanem via Python-list wrote: Thomas Passin wrote: Are you trying to troll here? You just showed how you got an error with this construction, so why are you asking how to get an error with this construction?

Re: Q: argparse.add_argument()

2023-03-18 Thread Chris Angelico
On Sun, 19 Mar 2023 at 06:35, Gisle Vanem via Python-list wrote: > > Thomas Passin wrote: > > > Are you trying to troll here? > > > You just showed how you got an error with this construction, so why are you > asking how to > > get an error with this construction? > > I meant (obviously),

Re: Q: argparse.add_argument()

2023-03-18 Thread Gisle Vanem via Python-list
Thomas Passin wrote: Are you trying to troll here? You just showed how you got an error with this construction, so why are you asking how to get an error with this construction? I meant (obviously), another error-message besides: error: unrecognized arguments: -cn Perhaps from

Re: Q: argparse.add_argument()

2023-03-18 Thread Chris Angelico
On Sun, 19 Mar 2023 at 06:09, Thomas Passin wrote: > > On 3/18/2023 2:02 PM, Gisle Vanem via Python-list wrote: > > I accidentally used 'argparse' like this in my Python 3.9 program: > >parser.add_argument ("-c, --clean", dest="clean", action="store_true") > >parser.add_argument ("-n,

Re: Q: argparse.add_argument()

2023-03-18 Thread Thomas Passin
On 3/18/2023 2:02 PM, Gisle Vanem via Python-list wrote: I accidentally used 'argparse' like this in my Python 3.9 program:   parser.add_argument ("-c, --clean",  dest="clean", action="store_true")   parser.add_argument ("-n, --dryrun", dest="dryrun", action="store_true") instead of:  

Q: argparse.add_argument()

2023-03-18 Thread Gisle Vanem via Python-list
I accidentally used 'argparse' like this in my Python 3.9 program: parser.add_argument ("-c, --clean", dest="clean", action="store_true") parser.add_argument ("-n, --dryrun", dest="dryrun", action="store_true") instead of: parser.add_argument ("-c", "--clean", dest="clean",