hedgedoc / cli

A tiny CLI for HedgeDoc
GNU Affero General Public License v3.0
150 stars 37 forks source link

Check for empty output at export #8

Closed B1Sandmann closed 5 years ago

B1Sandmann commented 5 years ago

If you don't state a output file else you'll get a No such file or directory error. This gives a nice error.

There are probably better ways to do it but this works. I first thought the initial error was that the pad wasn't available on the padserver and didn't understand that this meant the local filesystem. Another way would be to use the pad-name with ".md" as extension as default filename if none is given.