drop global argparse flags

They get shadowed by subargparser options.
This commit is contained in:
Jörg Thalheim
2024-05-29 10:10:10 +02:00
parent 9362d8b42d
commit d002419ae7
14 changed files with 185 additions and 162 deletions

View File

@@ -86,7 +86,7 @@ def test_inspect(
test_flake_with_core: FlakeForTest, capsys: pytest.CaptureFixture
) -> None:
cli = Cli()
cli.run(["--flake", str(test_flake_with_core.path), "vms", "inspect", "vm1"])
cli.run(["vms", "inspect", "--flake", str(test_flake_with_core.path), "vm1"])
out = capsys.readouterr() # empty the buffer
assert "Cores" in out.out