Show help if no arguments supplied #985
Show help if no arguments supplied #985jamesgeorge007 wants to merge 2 commits intokangax:gh-pagesfrom
Conversation
|
I counter-suggest that plenty of well-understood applications designed to work in a pipeline behave exactly like that and for good reason, all the way up from the humble cat, sed, awk, grep, etc... And this is in many ways a glorified filter too. Rgds Damon |
|
I think it is a good idea to have this since the user would get an idea of the various commands available for the very first time 🤔 |
|
It's fairly well understood that if a (filter) command is silent with no args then you try it with -help or --help. Else every single time you use it as a filter you need to add arguments and clutter to suppress that (unwanted) output. For non-filter-pipeline commands your case is stronger. Rgds Damon |
|
@DamonHD Most of the CLI tools these days ship with this option. I guess it is good to have despite the thoughts above 🤔 |
Presently if the user fires in
html-minifierwithout supplying any of the options, nothing is gonna happen. It is good to have the help showing up in that case 🤔