huntzhan / clidoc

Prove Of Conecept Fork Of Docopt.
MIT License
7 stars 1 forks source link

Handle quoted input argument. #35

Closed huntzhan closed 9 years ago

huntzhan commented 9 years ago

Situation like this:

➜  cpptest export TEST='t tt  ttt'
➜  cpptest ./a.out '1 2 $TEST'
1 2 $TEST
➜  cpptest ./a.out "1 2 $TEST"
1 2 t tt  ttt
➜  cpptest 

Since ' and " would be removed by shell, the program should detect quoted unit by detecting internal whitespaces.