heapwolf / ldb

A C++ REPL / CLI for LevelDB
MIT License
201 stars 23 forks source link

Usage example fails #41

Closed slowkow closed 6 years ago

slowkow commented 9 years ago

Hi, I'm following the usage example shown here.

Here is my result:

ldb ./db --put foo --value bar
In excecutable 'ldb':
Unrecognized flag/option './db'

Could you provide any tips? I'm interested to write a simple bash script to populate the database, but this is stopping me.


On the other hand, this command actually works:

ldb -i ./db -c

Then, I'm able to successfully do:

> put foo;bar
>
> get foo
bar
heapwolf commented 9 years ago

Hmm.. works for me (haha) are you sure you've pulled the latest?

~/w/g/h/ldb (master) $ ldb ./testdb --put foo --value bar
~/w/g/h/ldb (master) $ ldb ./testdb --get foo
bar
slowkow commented 9 years ago

I deleted my ldb folder, pulled the latest, and tried again. Still, the same result. I'm not sure what's wrong.

I get the same behavior on a Linux server and also on a Macbook. Maybe something to do with argument parsing might to be wrong? I don't know.

uname -srm
Linux 2.6.18-274.el5 x86_64

uname -srmpi
Darwin 13.4.0 x86_64 i386 MacBookPro11,2
heapwolf commented 6 years ago

Seems fixed in recent versions. Closing since this is old. If this is still an issue for you please feel free to re-open.