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
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])
Is it
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 an
argument?