Fix some CLI bugs

This commit is contained in:
Ludovic Fernandez
2019-06-21 09:40:04 +02:00
committed by Traefiker Bot
parent fe68e9e243
commit 1e779f7135
4 changed files with 8 additions and 3 deletions

View File

@@ -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] == '-'
}