byorgey / BlogLiterately

Command-line tool for formatting and publishing blog posts.
GNU General Public License v3.0
19 stars 4 forks source link

Improve error message when no argument given #30

Open luckypoem opened 8 years ago

luckypoem commented 8 years ago

hi. i installed blogliterately.

root@AR:/usr/local/blogliterately-site# blogliterately --post=test1 --format=markdown Requires at least 1 arguments, got 0 root@AR:/usr/local/blogliterately-site# how to fix it? thanks

byorgey commented 8 years ago

There is no --post flag. BlogLiterately expects the name of a file containing a post, like this:

BlogLiterately --format=markdown test1.md

However, that is a terrible error message. It's related to this: https://github.com/ndmitchell/cmdargs/issues/34 Looks like there's a potential workaround there, maybe I'll see if I can use it.