Skip to content

Commit

Permalink
Merge pull request #65 from stepchowfun/disable-subcommand-versions
Browse files Browse the repository at this point in the history
Disable the `--version` flag in subcommands
  • Loading branch information
stepchowfun authored Nov 27, 2019
2 parents 0c877c8 + bef8756 commit f6f905f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.2.1] - 2019-11-26

### Removed
- Removed the useless `--version` flag for subcommands.

## [1.2.0] - 2019-05-22

### Added
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tagref"
version = "1.2.0"
version = "1.2.1"
authors = ["Stephan Boyer <stephan@stephanboyer.com>"]
description = "Tagref helps you refer to other locations in your codebase."
license = "MIT"
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ fn settings<'a>() -> (ArgMatches<'a>, Vec<PathBuf>) {
)
.setting(AppSettings::ColoredHelp)
.setting(AppSettings::UnifiedHelpMessage)
.setting(AppSettings::VersionlessSubcommands)
.arg(
Arg::with_name(PATH_OPTION)
.short("p")
Expand Down

0 comments on commit f6f905f

Please sign in to comment.