Skip to content

Commit ed62015

Browse files
authored
Merge pull request #32 from ATIX-AG/mirror_help_text
Add help text for --mirror/--no-mirror sync option
2 parents 2c718c9 + dfe8620 commit ed62015

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGES/30.doc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added a help text for the --mirror/--no-mirror sync option.

pulpcore/cli/deb/repository.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,14 @@ def repository(ctx: click.Context, pulp_ctx: PulpContext, repo_type: str) -> Non
8989
@name_option
9090
@href_option
9191
@remote_option
92-
@click.option("--mirror/--no-mirror", default=None)
92+
@click.option(
93+
"--mirror/--no-mirror",
94+
default=None,
95+
help=(
96+
"Using mirror mode, will remove all content that is not present in the remote repository "
97+
"during sync. When disabled, the sync is purely additive."
98+
),
99+
)
93100
@pass_repository_context
94101
def sync(
95102
repository_ctx: PulpRepositoryContext,

0 commit comments

Comments
 (0)