mage icon indicating copy to clipboard operation
mage copied to clipboard

Warn if additional args when running mage commands like --version etc

Open natefinch opened this issue 8 years ago • 1 comments

bail if either flag is set if fs.NArgs() > 0 || fs.NFlags() > 1 - i.e. if any other args were specified.

Also move them into a separate section of the usage output called "commands".

The --clean flag should be treated the same way from #19

natefinch avatar Dec 22 '17 17:12 natefinch

Looks like the functionality has been implemented, since when a commands is given, any targets also specified are not executed. Sweet. But rather than ignoring them silently, it would be better if there was a warning. This should apply to all commands.

vassudanagunta avatar Dec 31 '17 19:12 vassudanagunta