CLI: debug is now part of the octoprint command context

This commit is contained in:
Gina Häußge 2015-10-27 13:47:00 +01:00
parent aeb4c21657
commit 150763fe2b

View file

@ -395,12 +395,12 @@ def octo(ctx, debug, host, port, basedir, configfile, logging, daemon, pid, allo
"start|stop|restart\" is deprecated, please use "
"\"octoprint daemon start|stop|restart\" from now on")
ctx.invoke(daemon_command, pid=pid, daemon=daemon, debug=debug, allow_root=allow_root)
ctx.invoke(daemon_command, pid=pid, daemon=daemon, allow_root=allow_root)
else:
click.echo("Starting the server via \"octoprint\" is deprecated, "
"please use \"octoprint serve\" from now on.")
ctx.invoke(serve_command, host=host, port=port, logging=logging, debug=debug, allow_root=allow_root)
ctx.invoke(serve_command, host=host, port=port, logging=logging, allow_root=allow_root)
def main():