Do not have CLI interpret OCTOPRINT_VERSION env var

--version is a flag, not an actual parameter (wouldn't really make sense
too). I'm not sure why that isn't the default behaviour of the built-in
version_option decorator tbh.

See #1647
This commit is contained in:
Gina Häußge 2016-12-12 10:59:00 +01:00
parent d0ff9cb65e
commit 50e55ed30d

View file

@ -129,7 +129,7 @@ from .config import config_commands
sources=[server_commands, plugin_commands, dev_commands, client_commands, config_commands])
@standard_options()
@legacy_options
@click.version_option(version=octoprint.__version__)
@click.version_option(version=octoprint.__version__, allow_from_autoenv=False)
@click.pass_context
def octo(ctx, debug, host, port, logging, daemon, pid, allow_root):