mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-09 06:50:58 +00:00
core: disallow parsing options after command (fixes #951)
This commit is contained in:
parent
5885978c83
commit
72cde5a57d
@ -79,7 +79,9 @@ def _from_env(name):
|
|||||||
return os.environ.get(name) == "1"
|
return os.environ.get(name) == "1"
|
||||||
|
|
||||||
|
|
||||||
@click.command(context_settings=dict(ignore_unknown_options=True))
|
@click.command(
|
||||||
|
context_settings=dict(ignore_unknown_options=True, allow_interspersed_args=False)
|
||||||
|
)
|
||||||
# fmt: off
|
# fmt: off
|
||||||
@click.option("-a", "--disable-animation/--enable-animation", default=_from_env("TREZOR_DISABLE_ANIMATION"), help="Disable animation")
|
@click.option("-a", "--disable-animation/--enable-animation", default=_from_env("TREZOR_DISABLE_ANIMATION"), help="Disable animation")
|
||||||
@click.option("-c", "--command", "run_command", is_flag=True, help="Run command while emulator is running")
|
@click.option("-c", "--command", "run_command", is_flag=True, help="Run command while emulator is running")
|
||||||
|
Loading…
Reference in New Issue
Block a user