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:
parent
d0ff9cb65e
commit
50e55ed30d
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue