Skip to content

Commit fb1a859

Browse files
committed
Change --nogit flag to --no-git-tag for clarity
Renamed the command-line flag from --nogit to --no-git-tag to make it clearer what the flag does (skips creating a git tag). The internal parameter name remains 'nogit' for backward compatibility. Updated documentation to reflect the new flag name.
1 parent 427b385 commit fb1a859

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/plugins/version.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ You may also choose to bump but not tag in git
5454

5555
```sh
5656
# update Ctl/VERSION to 1.1.0
57-
# tag v1.1.0
58-
# push tag
59-
ctl version bump --nogit
57+
# skip creating git tag
58+
ctl version bump --no-git-tag
6059
```
6160

6261
### Use existing repository checkout

src/ctl/plugins/version_base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,10 @@ def add_arguments(cls, parser, plugin_config, confu_cli_args):
126126
help="bumps the specified version segment by 1",
127127
)
128128
op_bump_parser.add_argument(
129-
"--nogit",
129+
"--no-git-tag",
130+
dest="nogit",
130131
action="store_true",
131-
help="whether to tag or not to tag (default: False)",
132+
help="skip creating a git tag (default: False)",
132133
default=False,
133134
)
134135

0 commit comments

Comments
 (0)