Compiler now parses CLI argument values correctly
This commit is contained in:
parent
2932e0c7d6
commit
0c48538888
|
@ -32,9 +32,12 @@ func (this *Cli) Parse (args []string) error {
|
|||
if len(args) > 0 { args = args[1:] }
|
||||
|
||||
next := func () string {
|
||||
arg := args[0]
|
||||
args = args[1:]
|
||||
return arg
|
||||
if len(args) > 0 {
|
||||
return args[0]
|
||||
} else {
|
||||
return ""
|
||||
}
|
||||
}
|
||||
|
||||
processFlag := func (flag *Flag, allowInput bool) error {
|
||||
|
|
Loading…
Reference in New Issue