mirror of
https://github.com/golang/go
synced 2024-11-22 07:04:40 -07:00
a couple of cosmetic tweaks.
R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=30599 CL=30602
This commit is contained in:
parent
2fcc8f2fb6
commit
8d343e2d49
@ -233,7 +233,7 @@ func Lookup(name string) *Flag {
|
||||
return f
|
||||
}
|
||||
|
||||
// Set sets the value of tne named flag. It returns true if the set succeeded; false if
|
||||
// Set sets the value of the named flag. It returns true if the set succeeded; false if
|
||||
// there is no such flag defined.
|
||||
func Set(name, value string) bool {
|
||||
f, ok := flags.formal[name];
|
||||
@ -264,7 +264,7 @@ func PrintDefaults() {
|
||||
// then calls os.Exit(1).
|
||||
func Usage() {
|
||||
if len(os.Args) > 0 {
|
||||
fmt.Fprintln(os.Stderr, "Usage of", os.Args[0] + ":");
|
||||
fmt.Fprintf(os.Stderr, "Usage of %s:\n", os.Args[0]);
|
||||
} else {
|
||||
fmt.Fprintln(os.Stderr, "Usage:");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user