Closed phronmophobic closed 2 years ago
Actually, I might scope this up a bit to validate all command line args. Would that work for you?
But it begs the question, should we maybe provide a better command-line experience via a -M
main usage and just use something like docopt?
To be honest, I almost never use clojure from the command line since I always have a repl available. I usually only add cli support so that I can put something in the readme. I'm happy to go with whatever you recommend for the cli interface.
Hmmm, very interesting point.
I must ask then, is an improved error message/exception for color-scheme
ideally for:
While the error messages currently aren't great, I think they're "acceptable". The unrelated Namespace message should be fixed in the next update to the clojure cli!
I was just going leave this until someone complained about it or until my OCD about unresolved issues compelled me to fix it.
I must ask then, is an improved error message/exception for color-scheme ideally for
Since you're one of the main consumers, I think you get to decide. If I had to pick one, I might prefer catering to the command line user since I'm not aware of any specific use cases other than people checking out the library and reading the Readme.
Coolio, thanks @phronmophobic, the command-line usability is bothering me enough to try out a PR, my plan:
This is really good stuff. Thanks again!
If a color scheme cannot be loaded, the error message is very indirect. It should be more helpful.
Examples: