status-im / nim-confutils

Simplified handling of command line options and config files
Apache License 2.0
64 stars 16 forks source link

"Empty" arguments are parsed incorreclty #6

Closed yglukhov closed 4 years ago

yglukhov commented 5 years ago
import confutils

cli do (arg1: string = "", arg2: string = ""):
  echo "arg1: ", arg1
  echo "arg2: ", arg2
nim c -r ./test.nim --arg1= --arg2=

Actual output:

arg1: --arg2=
arg2:

Expected output:

arg1:
arg2: