Add better inspector arg parsing (#2642)

This commit is contained in:
Adam Hopkins
2022-12-26 12:27:40 +02:00
committed by GitHub
parent c573019e7f
commit 28f5b3c301
5 changed files with 26 additions and 7 deletions

View File

@@ -326,6 +326,8 @@ def test_inspector_inspect(urlopen, caplog, capsys):
(["shutdown"], {}),
(["scale", "9"], {"replicas": 9}),
(["foo", "--bar=something"], {"bar": "something"}),
(["foo", "--bar"], {"bar": True}),
(["foo", "--no-bar"], {"bar": False}),
(["foo", "positional"], {"args": ["positional"]}),
(
["foo", "positional", "--bar=something"],