br0xen / boltbrowser

A CLI Browser for BoltDB Files
GNU General Public License v3.0
631 stars 91 forks source link

Add flags support #19

Closed andrewslotin closed 7 years ago

andrewslotin commented 7 years ago

Currently executing boltbrowser --help creates a file with name --help in the current working directory, which is counterintuitive. This commit adds command-line flags support to boltbrowser and changes it to print out the usage message instead. I also changed the exit code returned in case of an empty database files list to make it following the convention.

br0xen commented 7 years ago

Thanks for the help!