novoid / appendfilename

Intelligent appending text to file names, considering file extensions and file tags
GNU General Public License v3.0
50 stars 7 forks source link

Help command line switch #4

Closed metbril closed 5 years ago

metbril commented 5 years ago

I had to take a look at the code in this repo to find the available command line switches. It would be nice if a --help and/org -h switch would show the syntax. Or, the syntax could be shown if no arguments are passed at all (instead of the current error message).

novoid commented 5 years ago

Hi @metbril,

I can not follow your issue since both, -h and --help, are implemented as described. If I did not understand your issue correctly, please do re-open this issue.

However, you've got a point: I should probably catch the situation when not a single command line argument is given and show the help information. I fixed this with https://github.com/novoid/appendfilename/commit/385ba28608855b3eb52643293f0d43ae0a24aba7.

metbril commented 5 years ago

Well, after installing it (on macOS) using brew's pip3, I got an error message. I will try again soon and report back exactly what I was doing.