fix(config): add short option for version command
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Enhancing user experience by providing a shorthand option for version command, reducing potential user errors and improving command-line efficiency. - Added `-v` as a shorthand for the `--version` command in the parser. - Ensures quicker access to version information, aligning with common CLI practices. Signed-off-by: Glenn <glenux@glenux.net>
This commit is contained in:
parent
2b39fbddf2
commit
e057581c51
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ module CodePreloader
|
||||||
@trace = true
|
@trace = true
|
||||||
end
|
end
|
||||||
|
|
||||||
parser.on("--version", "Show version") do
|
parser.on("-v", "--version", "Show version") do
|
||||||
@subcommand = Subcommand::Version
|
@subcommand = Subcommand::Version
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue