Command-line parsing changes, and no irc by default #803

pull gavinandresen wants to merge 3 commits into bitcoin:master from gavinandresen:argparsing changing 7 files +265 −42
  1. gavinandresen commented at 7:43 pm on February 6, 2012: contributor

    I decided I’d typed “./bitcoind –nolisten” enough times to make command-line parsing work the way I think it should.

    Changes are:

    • Unit tests for the GetArg() methods
    • –foo=… is automatically interpreted as -foo=… (so you can use double-dashes if you like for all args)
    • Boolean arguments can be specified as either -foo (true) or -nofoo (false).
    • Internally, all boolean args are looked up using the positive form and default value (e.g. GetBoolArg("-dnsseed", true))
    • Tweaked the –help text
    • Default for -irc to bootstrap via IRC channel was changed from true to false
  2. sipa commented at 9:27 pm on February 6, 2012: member
    ACK
  3. Unit tests for the GetArg() methods 3ae0735553
  4. New GetArg features: allow --, and booleans can be -foo or -nofoo 3ad9f8a70f
  5. Look for flushwallet/listen/irc/dnsseed/upnp instead of noflushwallet/etc. And switch default for irc to 0. 9d952d17bb
  6. gavinandresen merged this on Feb 7, 2012
  7. gavinandresen closed this on Feb 7, 2012

  8. lateminer referenced this in commit 065f94118d on Feb 28, 2019
  9. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 12:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me