Fix some CLI bugs
This commit is contained in:
parent
fe68e9e243
commit
1e779f7135
4 changed files with 8 additions and 3 deletions
|
@ -128,5 +128,5 @@ func contains(cmds []*Command, name string) bool {
|
|||
}
|
||||
|
||||
func isFlag(arg string) bool {
|
||||
return len(arg) > 0 && arg[1] == '-'
|
||||
return len(arg) > 0 && arg[0] == '-'
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ type Configuration struct {
|
|||
Ping *ping.Handler `description:"Enable ping." export:"true" label:"allowEmpty"`
|
||||
// Rest *rest.Provider `description:"Enable Rest backend with default settings" export:"true"`
|
||||
|
||||
Log *types.TraefikLog `description:"Traefik log settings." export:"true"`
|
||||
Log *types.TraefikLog `description:"Traefik log settings." export:"true" label:"allowEmpty"`
|
||||
AccessLog *types.AccessLog `description:"Access log settings." export:"true" label:"allowEmpty"`
|
||||
Tracing *Tracing `description:"OpenTracing configuration." export:"true" label:"allowEmpty"`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue