Frans Englich wrote:
On Wednesday 15 December 2004 14:07, Diez B. Roggisch wrote:
In my use of getopt.getopt, I would like to make a certain parameter
mandatory. I know how to specify such that a parameter must have a value
if it's specified, but I also want to make the parameter itself
mandatory(c
On Wednesday 15 December 2004 14:07, Diez B. Roggisch wrote:
> > In my use of getopt.getopt, I would like to make a certain parameter
> > mandatory. I know how to specify such that a parameter must have a value
> > if it's specified, but I also want to make the parameter itself
> > mandatory(combin
In <[EMAIL PROTECTED]>, Frans Englich
wrote:
>> > In my use of getopt.getopt, I would like to make a certain parameter
>> > mandatory.
>>
>> Isn't a *mandatory option* a contradiction? Why don't you turn it into an
>> argument? You already called it argument in the subject of your post.
>
> I p
On Wednesday 15 December 2004 20:12, Marc 'BlackJack' Rintsch wrote:
> In <[EMAIL PROTECTED]>, Frans Englich
>
> wrote:
> > Hello,
> >
> > In my use of getopt.getopt, I would like to make a certain parameter
> > mandatory.
>
> Isn't a *mandatory option* a contradiction? Why don't you turn it into
In <[EMAIL PROTECTED]>, Frans Englich
wrote:
>
> Hello,
>
> In my use of getopt.getopt, I would like to make a certain parameter
> mandatory.
Isn't a *mandatory option* a contradiction? Why don't you turn it into an
argument? You already called it argument in the subject of your post.
Ciao,
> In my use of getopt.getopt, I would like to make a certain parameter
> mandatory. I know how to specify such that a parameter must have a value
> if it's specified, but I also want to make the parameter itself
> mandatory(combined with a mandatory value, the result is that the user
> must specify
Frans Englich wrote:
> In my use of getopt.getopt, I would like to make a certain parameter
> mandatory.
but you just did:
>if configurationFile == "":
>print "You must pass an URL/path to a configuration file, see
> --help."
>sys.exit(common.exitCodes["parameter"