moved -v --help options to be acted before config file is read

debian-releases/etch
Yaroslav Halchenko 2005-08-06 21:51:51 +00:00
parent 87a6c5a069
commit fe6d07eae5
1 changed files with 4 additions and 4 deletions

View File

@ -114,10 +114,6 @@ def getCmdLineOptions(optList):
""" Gets the command line options
"""
for opt in optList:
if opt[0] in ["-h", "--help"]:
dispUsage()
if opt[0] in ["-V", "--version"]:
dispVersion()
if opt[0] == "-v":
conf["verbose"] = conf["verbose"] + 1
if opt[0] == "-b":
@ -164,6 +160,10 @@ def main():
# Pre-parsing of command line options for the -c option
for opt in optList:
if opt[0] in ["-h", "--help"]:
dispUsage()
if opt[0] in ["-V", "--version"]:
dispVersion()
if opt[0] == "-c":
conf["conffile"] = opt[1]