When invoking file-freshener, it takes a rather horrifying route to error handling, it mostly doesn't.
This isn't acceptable, it should print messages about proper parameter usage. It also needs to check that the arguments for -insert for example aren't other commands like -freshen or redirect.
This would be easy enough to screen for, checking that the arguments do not start with a hyphen.
There are other things that are necessary, but this seems like it might be among the more important ones.
When invoking file-freshener, it takes a rather horrifying route to error handling, it mostly doesn't.
This isn't acceptable, it should print messages about proper parameter usage. It also needs to check that the arguments for
-insert
for example aren't other commands like-freshen
orredirect
.This would be easy enough to screen for, checking that the arguments do not start with a hyphen.
There are other things that are necessary, but this seems like it might be among the more important ones.