Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -1375,6 +1375,10 @@ func Parsed() bool {
return CommandLine.Parsed()
}

// SortFlags is the package-level convenience alias for CommandLine.SortFlags.
// Set SortFlags to false to print flags in the order they were added.
var SortFlags = &CommandLine.SortFlags

// CommandLine is the default set of command-line flags, parsed from os.Args.
var CommandLine = NewFlagSet(os.Args[0], ExitOnError)

Expand Down
Loading