Skip to content

Commit

Permalink
fix(cli): exit when calling subcommand node without args (#5556)
Browse files Browse the repository at this point in the history
Signed-off-by: BOOK <book78987book@gmail.com>
  • Loading branch information
book987 authored Mar 31, 2021
1 parent aa04948 commit 23ccd9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/argo/commands/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"log"
"os"
"strconv"
"strings"

Expand Down Expand Up @@ -39,6 +40,7 @@ func NewNodeCommand() *cobra.Command {
Run: func(cmd *cobra.Command, args []string) {
if len(args) < 1 {
cmd.HelpFunc()(cmd, args)
os.Exit(1)
}

if args[0] != "set" {
Expand Down

0 comments on commit 23ccd9c

Please sign in to comment.