From 47b7a53460953650eeadb2140da38095cd426628 Mon Sep 17 00:00:00 2001 From: jchu Date: Fri, 3 Sep 2004 20:30:06 +0000 Subject: a little bit of tweaking --- tupkg/server/tupkgs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tupkg/server') diff --git a/tupkg/server/tupkgs b/tupkg/server/tupkgs index 63abaea..1aba794 100755 --- a/tupkg/server/tupkgs +++ b/tupkg/server/tupkgs @@ -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) -- cgit v1.2.3-70-g09d2