Files
bitcoin/src
MarcoFalke 4490871ed7 Merge #12713: Track negated options in the option parser
f7683cba7b Track negated arguments in the argument paser. (Evan Klitzke)
4f872b2450 Add additional tests for GetBoolArg() (Evan Klitzke)

Pull request description:

  This change explicitly enable tracking negated options in the option parser. A negated option is one passed with a `-no` prefix. For example, `-nofoo` is the negated form of `-foo`. Negated options were originally added in the 0.6 release.

  The change here allows code to explicitly distinguish between cases like `-nofoo` and `-foo=0`, which was not possible previously. The option parser does not have any changed semantics as a result of this change, and existing code will parse options just as it did before.

  The motivation for this change is to provide a way to disable options that are otherwise not boolean options. For example, the `-debuglogfile` option is normally interpreted as a string, where the value is the log file name. With this change a user can pass in `-nodebuglogfile` and the code can see that it was explicitly negated, and use that to disable the log file.

  This change originally split out from #12689.

Tree-SHA512: cd5a7354eb03d2d402863c7b69e512cad382781d9b8f18c1ab104fc46d45a712530818d665203082da39572c8a42313c5be09306dc2a7227cdedb20ef7314823
2018-03-30 11:43:56 -04:00
..
2018-03-21 10:54:17 +01:00
2018-02-16 08:59:28 -05:00
2018-03-30 11:40:46 -04:00
2017-09-29 16:02:39 +02:00
2018-02-10 09:55:54 -05:00
2018-03-06 21:52:53 +01:00
2018-03-21 10:54:17 +01:00
2018-03-21 11:57:57 +08:00
2018-02-11 10:48:15 +01:00
2018-03-06 19:52:19 +00:00
2018-03-06 19:52:19 +00:00
2018-03-13 17:04:31 -07:00
2018-02-27 11:42:06 -08:00
2018-03-21 08:34:44 +02:00
2018-03-21 08:34:44 +02:00
2018-03-13 17:04:31 -07:00
2018-01-23 13:16:56 -05:00
2018-03-22 10:28:56 -04:00
2018-03-14 23:10:39 -07:00
2018-03-21 08:34:44 +02:00
2018-01-28 13:21:25 +01:00
2018-03-21 08:34:44 +02:00
2018-03-25 11:32:41 +03:00
2018-03-25 11:32:41 +03:00
2018-03-06 20:28:08 -08:00