Skip to content

Commit

Permalink
refactor(eask): Improve version information
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Sep 4, 2023
1 parent 47dcad1 commit 5ee93e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions docs/content/en/Getting-Started/Basic-Usage/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,14 @@ Commands:
check-eask [files..] Run eask checker
locate Print out Eask installed location
upgrade-eask Upgrade Eask itself [aliases: upgrade-self]
Proxy Options:
--proxy update proxy for HTTP and HTTPS to host [string]
--http-proxy update proxy for HTTP to host [string]
--https-proxy update proxy for HTTPS to host [string]
--no-proxy set no-proxy to host [string]
Options:
--version show version number [boolean]
--version output version information and exit [boolean]
--help show usage instructions [boolean]
--show-hidden Show hidden commands and options [boolean]
-g, --global change default workspace to ~/.eask/ [boolean]
Expand Down
3 changes: 1 addition & 2 deletions docs/content/zh-TW/Getting-Started/Basic-Usage/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,14 @@ Commands:
check-eask [files..] Run eask checker
locate Print out Eask installed location
upgrade-eask Upgrade Eask itself [aliases: upgrade-self]
Proxy Options:
--proxy update proxy for HTTP and HTTPS to host [string]
--http-proxy update proxy for HTTP to host [string]
--https-proxy update proxy for HTTPS to host [string]
--no-proxy set no-proxy to host [string]
Options:
--version show version number [boolean]
--version output version information and exit [boolean]
--help show usage instructions [boolean]
--show-hidden Show hidden commands and options [boolean]
-g, --global change default workspace to ~/.eask/ [boolean]
Expand Down
4 changes: 3 additions & 1 deletion eask
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Usage: eask <command> [options..]`;

const epilogue = `For more information, find the manual at https://emacs-eask.github.io/`;

const version = `0.8.2`;

yargs
.usage(usage)
.scriptName('')
Expand All @@ -23,7 +25,7 @@ yargs
handler() { yargs.showHelp(); }
})
.showHelpOnFail(true)
.version('version', 'show version number', '0.8.2')
.version('version', 'output version information and exit', version)
.help('help', 'show usage instructions')
.showHidden('show-hidden', 'Show hidden commands and options')
.options({
Expand Down

0 comments on commit 5ee93e0

Please sign in to comment.