rax-maas / dreadnot

deploy without dread
Apache License 2.0
631 stars 61 forks source link

Bail with usage message if config does not exist. #50

Closed oremj closed 11 years ago

oremj commented 11 years ago

Catch and handle the exception which occurs if -c does not exist.

jirwin commented 11 years ago

@oremj Sorry it took so long to get to this. I think it might be better to use the .demand() feature of optimist. More info on that here.

What do you think?

oremj commented 11 years ago

@jirwin .demand() just assures that the argument is passed. This patch bails gracefully if the config file is passed, but does not exist on the fs.

jirwin commented 11 years ago

@oremj You're totally right. Thats what I get for reading code late on a Friday. Thanks for the patch.

oremj commented 11 years ago

Thanks @jirwin !

robert-chiniquy commented 11 years ago

Nice.