forked from uncloud/uncloud
Using click instead of argparse in uncloud script
This commit is contained in:
parent
2afb37daca
commit
cd2f0aaa0d
14 changed files with 279 additions and 20 deletions
|
|
@ -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__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue