'-f' must now always be specified as '--fmt', refs #194

This commit is contained in:
Simon Willison 2020-11-06 16:17:15 -08:00
commit 309ae84336
3 changed files with 2 additions and 3 deletions

View file

@ -149,7 +149,7 @@ def test_output_table(db_path, fmt, expected):
for i in range(4)
]
)
result = CliRunner().invoke(cli.cli, ["rows", db_path, "rows", "-t", "-f", fmt])
result = CliRunner().invoke(cli.cli, ["rows", db_path, "rows", "-t", "--fmt", fmt])
assert 0 == result.exit_code
assert expected == result.output.strip()