veyron/lib/cmdline: Add help topics, and minor cleanups.

Help topics provide more details for particular topics, so that
users can get all the documentation that they need directly from
our cmdline tools.  I've updated the vdl tool with a "packages"
topic, and plan to add another for "vdlpath" in the future.

Also some minor cleanups of the cmdline implementation.  In
particular create some flag.FlagSet helper functions, and replace
prefixErrorWriter with a more standard error-handling strategy.

I haven't updated all the doc comments for our tools yet; I'm
planning on adding simple support using "go generate" in a future
change.

Change-Id: Iea584a72b3ba345a41dba4f3c5a270ef1314e775
2 files changed
tree: d507b024fad3fef6cc01187187003c96337b37db
  1. cmdline/