@@ -64,7 +64,7 @@ fn main() {
64
64
// Since --setversion shouldn't be used with any of the --major, --minor, or --match, we
65
65
// set those as exclusions
66
66
. group ( ArgGroup :: with_name ( "setver" )
67
- . args ( & [ "major" , "minor" , "patch" , "ver " ] ) )
67
+ . args ( & [ "major" , "minor" , "patch" , "setversion " ] ) )
68
68
. after_help ( "\
69
69
* If your .git directory is a child of your project directory (most common, such as \
70
70
/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> {
156
156
let ( major, minor, patch) = ( matches. is_present ( "major" ) ,
157
157
matches. is_present ( "minor" ) ,
158
158
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 ( )
161
161
} else if major || minor || patch {
162
162
let mut had_v = false ;
163
163
let v_string = clog. get_latest_tag_ver ( ) ;
0 commit comments