Skip to content

Commit 7792eae

Browse files
committed
chore(cli[sync]): metavar and help text
1 parent eee20e0 commit 7792eae

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/vcspull/cli/sync.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ def create_sync_subparser(parser: argparse.ArgumentParser) -> argparse.ArgumentP
2929
)
3030
parser.add_argument(
3131
"repo_terms",
32+
metavar="filter",
3233
nargs="*",
33-
help="filter(s) of repo terms, separated by spaces, accepts globs / fnmatch(3)",
34+
help="patterns / terms of repos, accepts globs / fnmatch(3)",
3435
)
3536
parser.add_argument(
3637
"--exit-on-error",

tests/test_cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class SyncCLINonExistentRepo(t.NamedTuple):
5959
SYNC_CLI_EXISTENT_REPO_FIXTURES,
6060
ids=[test.test_id for test in SYNC_CLI_EXISTENT_REPO_FIXTURES],
6161
)
62-
def test_sync_cli_repo_term_non_existent(
62+
def test_sync_cli_filter_non_existent(
6363
tmp_path: pathlib.Path,
6464
capsys: pytest.CaptureFixture,
6565
monkeypatch: pytest.MonkeyPatch,
@@ -165,14 +165,14 @@ class SyncFixture(t.NamedTuple):
165165
test_id="sync---help",
166166
sync_args=["sync", "--help"],
167167
expected_exit_code=0,
168-
expected_in_out=["repo_terms", "--exit-on-error"],
168+
expected_in_out=["filter", "--exit-on-error"],
169169
expected_not_in_out="--version",
170170
),
171171
SyncFixture(
172172
test_id="sync--h",
173173
sync_args=["sync", "-h"],
174174
expected_exit_code=0,
175-
expected_in_out=["repo_terms", "--exit-on-error"],
175+
expected_in_out=["filter", "--exit-on-error"],
176176
expected_not_in_out="--version",
177177
),
178178
# Sync: Repo terms

0 commit comments

Comments
 (0)