use Short if defined
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
5fa7681956
commit
6749a1d173
3
flags.go
3
flags.go
|
@ -120,6 +120,9 @@ func (f *LogFlag) Register() {
|
|||
defer flagsMutex.Unlock()
|
||||
Info("log.Register() ", f)
|
||||
f.Default = f.B
|
||||
if f.Short == "" {
|
||||
f.Short = f.Subsystem
|
||||
}
|
||||
flags = append(flags,f)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue