open-consul/agent/config
Frank Schroeder 24689c4f5e config: return error on extra command line arguments (#3397)
The `consul agent` command was ignoring extra command line arguments
which can lead to confusion when the user has for example forgotten to
add a dash in front of an argument or is not using an `=` when setting
boolean flags to `true`. `-bootstrap true` is not the same as
`-bootstrap=true`, for example.

Since all command line flags are known and we don't expect unparsed
arguments we can return an error. However, this may make it slightly
more difficult in the future if we ever wanted to have these kinds of
arguments.

Fixes #3397
2017-10-23 08:08:09 +02:00
..
builder.go config: return error on extra command line arguments (#3397) 2017-10-23 08:08:09 +02:00
config.go agent: add option to discard health output (#3562) 2017-10-10 17:04:52 -07:00
default.go Makes RPC handling more robust when rolling servers. (#3561) 2017-10-10 15:19:50 -07:00
doc.go Metrics service prefix (#3498) 2017-09-26 17:49:55 -07:00
flags.go config: return error on extra command line arguments (#3397) 2017-10-23 08:08:09 +02:00
flags_test.go config: return error on extra command line arguments (#3397) 2017-10-23 08:08:09 +02:00
flagset.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
merge.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
merge_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
patch_hcl.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
patch_hcl_test.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
runtime.go config: address review comments 2017-10-23 08:06:26 +02:00
runtime_test.go config: return error on extra command line arguments (#3397) 2017-10-23 08:08:09 +02:00
segments_oss.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
segments_oss_test.go config: rename test struct field to args 2017-10-23 08:08:09 +02:00
translate.go config: add generic method to translate between CamelCase and snake_case (#3557) 2017-10-10 16:40:59 -07:00
translate_test.go config: add generic method to translate between CamelCase and snake_case (#3557) 2017-10-10 16:40:59 -07:00