Skip to content

Commit

Permalink
feat: remove -V option
Browse files Browse the repository at this point in the history
  • Loading branch information
loqusion committed May 7, 2024
1 parent 3be55a1 commit 621100c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hyprshade/cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def __to_dict_callback(
return merged

if len(param_decls) == 0:
param_decls = ("--var", "-V", "variables")
param_decls = ("--var", "variables")

return click.option(
*param_decls,
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/common/test_vars_option.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,4 +328,4 @@ def test_no_equals(
result = runner.invoke(cli, [subcommand, "shader", "--var", "key"])

assert result.exit_code != 0
assert "Invalid value for '--var' / '-V'" in result.stderr
assert "Invalid value for '--var'" in result.stderr

0 comments on commit 621100c

Please # to comment.