Skip to content

Commit 312f362

Browse files
authored
Merge pull request gmr#111 from Beahmer89/add_version_to_cli
Issue gmr#97: Add version to cli
2 parents 979cfdc + 212bedd commit 312f362

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

consulate/cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ def parse_cli_args():
244244
default=None,
245245
help='The datacenter to specify for the connection')
246246
parser.add_argument('--token', default=None, help='ACL token')
247+
parser.add_argument('--version', action='version',
248+
version=consulate.__version__,
249+
help='Current consulate version')
247250

248251
sparser = parser.add_subparsers(title='Commands', dest='command')
249252
add_acl_args(sparser)

0 commit comments

Comments
 (0)