Skip to content

Commit 15e93e4

Browse files
committed
删除帮助命令和版本命令的处理逻辑
1 parent e887326 commit 15e93e4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

cmd/nodapt/main.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ COMMANDS:
5151
clean Remove all the node version that installed by nodapt
5252
ls|list List all the installed node version
5353
ls-remote|list-remote List all the available node version
54-
help <COMMAND> Print help information for the specified command
5554
5655
GLOBAL OPTIONS:
5756
--help|-h Print help information
@@ -131,10 +130,6 @@ func main() {
131130
if err := command.ListRemote(); err != nil {
132131
handleError(err)
133132
}
134-
case "help":
135-
printHelp()
136-
case "version":
137-
defaultBehaviorHandler(false, true, "")
138133
case "run":
139134
if err := command.Run(args[1:]); err != nil {
140135
handleError(err)

0 commit comments

Comments
 (0)