mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
a little bit of tweaking
This commit is contained in:
parent
f841dbcf1b
commit
47b7a53460
1 changed files with 2 additions and 1 deletions
|
@ -197,7 +197,6 @@ def usage(name):
|
|||
print "usage: " + name + " [options]"
|
||||
print "options:"
|
||||
print " -c, --config Specify an alternate config file (default " + CONFIGFILE + ")"
|
||||
sys.exit(2)
|
||||
|
||||
def getDefaultConfig():
|
||||
confdict = {}
|
||||
|
@ -217,6 +216,7 @@ def main(argv=None):
|
|||
optlist, args = getopt.getopt(argv[1:], "c:", ["config="])
|
||||
except getopt.GetoptError:
|
||||
usage(argv[0])
|
||||
return 1
|
||||
|
||||
conffile = CONFIGFILE
|
||||
|
||||
|
@ -227,6 +227,7 @@ def main(argv=None):
|
|||
if not os.path.isfile(conffile):
|
||||
print "Error: cannot access config file ("+conffile+")"
|
||||
usage(argv[0])
|
||||
return 1
|
||||
|
||||
config.read(conffile)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue