lib: Remove TODO comment regarding -metadata flag.

The intended usage of the -metadata flag is that whenever it is
set on the command-line, the program will dump metadata to stdout
and gracefully terminate.

Originally I had planned to implement this by making the Set
method return a metadata.ErrFlag error.  This way the caller of
FlagSet.Parse could check the error against metadata.ErrFlag, and
do whatever they liked.

However there was a bug in the flag package that ignored errors
returned by Set for boolean flags.  That's been fixed:
https://github.com/golang/go/commit/bc611a31a5b3003ba6c05d337093f9b83e898209

But there's still a catch.  The flag package wraps the errors
returned by Set with its own error.  That means the caller of
FlagSet.Parse cannot distinguish the error based on its type or
value.

So I'm giving up and getting rid of the TODO.  Calling os.Exit(0)
is ugly, but is fine for all practical purposes.

Change-Id: Id04d3b3d6564327156f9e6c5dbd9301598c161a7
2 files changed
tree: 5f5f68dc77479666cf648a7785c78f339228a867
  1. cmdline/
  2. dbutil/
  3. envvar/
  4. host/
  5. ibe/
  6. metadata/
  7. netconfig/
  8. netstate/
  9. set/
  10. textutil/
  11. toposort/
  12. vlog/
  13. .gitignore
  14. .godepcop
  15. AUTHORS
  16. CONTRIBUTING.md
  17. CONTRIBUTORS
  18. LICENSE
  19. PATENTS
  20. README.md
  21. VERSION
README.md

This repository contains general purpose libraries used by the Vanadium project. TEST