1234567891011121314151617181920212223242526272829 |
- package pflag
- import (
- "io/ioutil"
- "os"
- )
- func ResetForTesting(usage func()) {
- CommandLine = &FlagSet{
- name: os.Args[0],
- errorHandling: ContinueOnError,
- output: ioutil.Discard,
- }
- Usage = usage
- }
- func GetCommandLine() *FlagSet {
- return CommandLine
- }
|