Skip to content

Commit

Permalink
clean up the help menu for immortalctl
Browse files Browse the repository at this point in the history
  • Loading branch information
nbari committed Mar 8, 2019
1 parent 28462ff commit 009c0cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/immortal/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func main() {
os.Exit(1)
}

// if -cc
// if -cc (check config)
if (fs.Lookup("cc")).Value.(flag.Getter).Get().(bool) && cfg == nil {
os.Exit(0)
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/immortalctl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ func main() {
}

flag.Usage = func() {
fmt.Fprintf(os.Stderr, "usage: %s [option] [-12achikinouqstvw] service\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n\n%s %s\n",
fmt.Fprintf(os.Stderr, "usage: %s [-v] [option] [signals -12achik,in,ou,qstw] service\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n\n%s %s\n",
os.Args[0],
" Options:",
" exit Exits the supervisor.",
" exit Exits only the supervisor, not the service.",
" halt Stop the service by sending a TERM signal, and exits supervisor - restart.",
" once If the service is not running, start it. Do not restart it if it stops.",
" start Start the service.",
Expand Down

0 comments on commit 009c0cc

Please sign in to comment.