Skip to content

Commit

Permalink
fix: make -v an alias for --version
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jul 1, 2019
1 parent c8a0a0c commit 5f5b993
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Expand Up @@ -77,7 +77,8 @@ const MAIN_ARGS = usage(`Usage: salty-dog [-m mode] [options]`)
alias: ['t', 'tag'],
})
.help()
.version(VERSION_INFO.app.version);
.version(VERSION_INFO.app.version)
.alias('version', 'v');

const STATUS_SUCCESS = 0;
const STATUS_ERROR = 1;
Expand Down

0 comments on commit 5f5b993

Please sign in to comment.