html-minifier icon indicating copy to clipboard operation
html-minifier copied to clipboard

Show help if no arguments supplied

Open jamesgeorge007 opened this issue 6 years ago • 4 comments

Presently if the user fires in html-minifier without supplying any of the options, nothing is gonna happen. It is good to have the help showing up in that case 🤔

jamesgeorge007 avatar Dec 28 '18 03:12 jamesgeorge007

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

DamonHD avatar Dec 28 '18 08:12 DamonHD

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 :thinking:

jamesgeorge007 avatar Dec 28 '18 10:12 jamesgeorge007

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 avatar Dec 28 '18 10:12 DamonHD

@DamonHD Most of the CLI tools these days ship with this option. I guess it is good to have despite the thoughts above :thinking:

jamesgeorge007 avatar Feb 07 '19 09:02 jamesgeorge007