BlogLiterately icon indicating copy to clipboard operation
BlogLiterately copied to clipboard

Improve error message when no argument given

Open luckypoem opened this issue 8 years ago • 1 comments

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

luckypoem avatar Aug 18 '16 02:08 luckypoem

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.

byorgey avatar Aug 18 '16 13:08 byorgey