open-consul/command
Frank Schroeder c624c72d5c
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:07:48 +02:00
..
agent config: return error on extra command line arguments (#3397) 2017-10-23 08:07:48 +02:00
catalog commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
event commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
exec commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
flags commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
forceleave commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
info commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
join commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
keygen commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
keyring commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
kv commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
leave commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
lock commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
maint commands: cleanup init 2017-10-18 02:39:10 +02:00
members commands: cleanup init 2017-10-18 02:39:10 +02:00
monitor commands: cleanup init 2017-10-18 02:39:10 +02:00
operator commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
reload commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
rtt commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
snapshot commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
validate Updates documentation for consul validate. 2017-10-19 18:59:05 -07:00
version commands: run all tests in parallel (again) 2017-10-18 00:08:45 +02:00
watch commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
commands.go commands: add shorter helper vars to keep fmt sane 2017-10-18 02:39:10 +02:00