Using click instead of argparse in uncloud script

This commit is contained in:
ahmadbilalkhalid 2020-01-01 14:59:47 +05:00
commit cd2f0aaa0d
14 changed files with 279 additions and 20 deletions

View file

@ -111,8 +111,8 @@ class Root(Resource):
api.add_resource(Root, "/")
def main(port=None):
app.run(debug=True, host="::", port=port)
def main(port=None, debug=False):
app.run(debug=debug, host="::", port=port)
if __name__ == "__main__":