Hello List Members, I am working on a simple program and would like to know the best way to approach this. Using getops I am parsing the argv array to grab command line options; from the command line the user can specify either a filename or a directory (but not both). Is there an eloquent way with getopts to do an either/or scenario without resorting to multiple tests to see which variable is set using if then statements?
Thanks in advance _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor