MB-12314: Report error for incorrect command line options

Change-Id: Ie96920c9909af941bf0b0ac59fc35eac8232091b
Reviewed-on: http://review.couchbase.org/42001
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
MB-12328: Convert the dcp mutation flags field to network order

Change-Id: If5a06fb7b65bc0aacf44412169b8dd0b66f51ae1
Reviewed-on: http://review.couchbase.org/42080
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
MB-11859: Update connection stats/mcstat JSON output

The `connections` stats are output as JSON, with one JSON document per
connection. To allow these to be printed as valid JSON by mcstat, make
two changes:

1) Remove the 'STATS' prefix from each line output by mcstat.
2) Change the key of each document to be a single space (" ").

Together these trivially allow mcstat to print as valid JSON (with two
leading spaces, due to it essentially outputing a single space key
plus a seperating space), without affecting plain-test stats.

Change-Id: I0a7c868f5fdd7bdf0a2b084a8f61932f1bdc4918
Reviewed-on: http://review.couchbase.org/41220
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Jim Walker <jim@couchbase.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Merge remote-tracking branch 'membase/3.0.1'

* membase/3.0.1:
  MB-11859: Update connection stats/mcstat JSON output
  MB-12328: Convert the dcp mutation flags field to network order
  MB-12314: Report error for incorrect command line options

Change-Id: I48637aabe5d651756af5d2cab5d303dbf214c0d7