From bef875699205de28378caf2ae446c54cb9f13fb2 Mon Sep 17 00:00:00 2001
From: Stephan Boyer <stephan.boyer@airbnb.com>
Date: Tue, 26 Nov 2019 23:40:08 -0800
Subject: [PATCH] Disable the `--version` flag in subcommands

---
 CHANGELOG.md | 5 +++++
 Cargo.lock   | 2 +-
 Cargo.toml   | 2 +-
 src/main.rs  | 1 +
 4 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index bf754d7..3bfba51 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/Cargo.lock b/Cargo.lock
index a33b07c..c2c7b3d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -182,7 +182,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 
 [[package]]
 name = "tagref"
-version = "1.2.0"
+version = "1.2.1"
 dependencies = [
  "atty 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)",
  "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
diff --git a/Cargo.toml b/Cargo.toml
index 222b217..c2e64ef 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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"
diff --git a/src/main.rs b/src/main.rs
index 5eef7d0..6fdff0c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -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")