Skip to content

Commit 9c398b5

Browse files
committed
update help
1 parent 38739ee commit 9c398b5

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

cmd/src/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Usage:
1616
1717
The commands are:
1818
19-
token prints the current authentication token
19+
token prints the current authentication token or Authorization header
2020
2121
Use "src auth [command] -h" for more information about a command.
2222
`

cmd/src/auth_token.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ func init() {
2525
flagSet := flag.NewFlagSet("token", flag.ExitOnError)
2626
header := flagSet.Bool("header", false, "print the token as an Authorization header")
2727
usageFunc := func() {
28-
fmt.Fprintf(flag.CommandLine.Output(), "Usage of 'src auth token':\n")
28+
fmt.Fprintf(flag.CommandLine.Output(), "Usage of 'src auth token':\n\n")
29+
fmt.Fprintf(flag.CommandLine.Output(), "Print the current authentication token.\n")
30+
fmt.Fprintf(flag.CommandLine.Output(), "Use --header to print a complete Authorization header instead.\n\n")
2931
flagSet.PrintDefaults()
3032
}
3133

0 commit comments

Comments
 (0)