heapwolf / lev

The complete REPL & CLI for managing LevelDB instances.
MIT License
296 stars 36 forks source link

PUT does not work in REPL mode using some kinds of JSON #50

Closed lliss closed 8 years ago

lliss commented 8 years ago

Because of the way arguments are parsed, any JSON value that includes a space, will result in an error. For example: put testkey "{\"test\":\"some value\"}" will fail because the value will be interpreted as {"test":"some The error is cause by the argument handling here: https://github.com/0x00A/lev/blob/cff7f20484a1247a3d08aadeb42b8e7088ff2b94/lib/repl.js#L66

heapwolf commented 8 years ago

Seems like your PR should address this, so could this be closed?