perkeep/pkg/cmdmain
Stephen Searles 2a08eafcab print mode information on top-level commands with just -h
Previously commands like camput, when invoked with simply just -h or
--help, they would only print the global flags defined on
flag.CommandLine of the standard library. In order to reach the richer
help text including mode information, you had to specify some mode, even
a fake one.

This change just replaces the flag.Usage function so that the global
help flag handling will call into the code that prints the nicer
message.

Fixes #890

Change-Id: Ib9ae73472148de6e92eeba92f12b5af7debe2bd1
2016-12-08 22:31:59 -08:00
..
cmdmain.go print mode information on top-level commands with just -h 2016-12-08 22:31:59 -08:00
cmdmain_go12.go cmdmain: set flagset output to cmdmain.Stderr 2014-02-18 18:41:51 -08:00