Branch: refs/heads/master
  Home:   https://github.com/conformal/btcd
  Commit: ca13333d25b7bf2761c55a80899308070ff73030
      
https://github.com/conformal/btcd/commit/ca13333d25b7bf2761c55a80899308070ff73030
  Author: Dave Collins <[email protected]>
  Date:   2014-08-19 (Tue, 19 Aug 2014)

  Changed paths:
    M config.go

  Log Message:
  -----------
  Always show help on help flag.

This commit resolves a minor issue where an error in the config file would
prevent the help from being shown until the config file error was
resolved.

This results in the following behavior:

- With a malformed header:
  $ ./btcd
  Error parsing config file: ~/btcd/btcd.conf:14: malformed section header
  Use btcd -h to show usage
- With an invalid option:
  $ ./btcd
  Error parsing config file: unknown option: bogus
  Use btcd -h to show usage
- Invoking help with an error in the config file:
  $ ./btcd -h
  Usage:
  ...
- Invoking with an invalid command line option:
  $ ./btcd --bogus=bogus
  unknown flag `bogus'
  Use btcd -h to show usage

ok @jrick


Reply via email to