import logging
from fdroidserver.common import FDroidException
+from optparse import OptionError
commands = {
"build": "Build a package from source",
"scanner": "Scan the source code of a package",
"stats": "Update the stats of the repo",
"server": "Interact with the repo HTTP server",
- }
+}
def print_help():
else:
logging.critical(str(e))
sys.exit(1)
+ except OptionError, e:
+ logging.critical(str(e))
+ sys.exit(1)
except KeyboardInterrupt:
print('')
sys.exit(1)