Skip to content

Commit

Permalink
Add note indicating modes have usage text (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmaguire authored Dec 20, 2022
1 parent ff54bfd commit b7e73da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cmd/nebula-cert/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ func help(err string, out io.Writer) {
fmt.Fprintln(out, " "+signSummary())
fmt.Fprintln(out, " "+printSummary())
fmt.Fprintln(out, " "+verifySummary())
fmt.Fprintln(out, "")
fmt.Fprintf(out, " To see usage for a given mode, use %s <mode> -h\n", os.Args[0])
}

func mustFlagString(name string, val *string) error {
Expand Down
4 changes: 3 additions & 1 deletion cmd/nebula-cert/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ func Test_help(t *testing.T) {
" " + keygenSummary() + "\n" +
" " + signSummary() + "\n" +
" " + printSummary() + "\n" +
" " + verifySummary() + "\n"
" " + verifySummary() + "\n" +
"\n" +
" To see usage for a given mode, use " + os.Args[0] + " <mode> -h\n"

ob := &bytes.Buffer{}

Expand Down

0 comments on commit b7e73da

Please sign in to comment.