Skip to content

Commit 4737426

Browse files
authored
Merge pull request #92 from zitsen/fix-setversion
fix: `setversion` option name typo
2 parents 0160835 + e407149 commit 4737426

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fn main() {
6464
// Since --setversion shouldn't be used with any of the --major, --minor, or --match, we
6565
// set those as exclusions
6666
.group(ArgGroup::with_name("setver")
67-
.args(&["major", "minor", "patch", "ver"]))
67+
.args(&["major", "minor", "patch", "setversion"]))
6868
.after_help("\
6969
* If your .git directory is a child of your project directory (most common, such as \
7070
/myproject/.git) AND not in the current working directory (i.e you need to use --work-tree or \
@@ -156,8 +156,8 @@ pub fn from_matches(matches: &ArgMatches) -> CliResult<Clog> {
156156
let (major, minor, patch) = (matches.is_present("major"),
157157
matches.is_present("minor"),
158158
matches.is_present("patch"));
159-
if matches.is_present("ver") {
160-
matches.value_of("ver").unwrap().to_owned()
159+
if matches.is_present("setversion") {
160+
matches.value_of("setversion").unwrap().to_owned()
161161
} else if major || minor || patch {
162162
let mut had_v = false;
163163
let v_string = clog.get_latest_tag_ver();

0 commit comments

Comments
 (0)