feat(CLI): did you mean for struct values

* functionality is cursor-aware, and fixes the actual string the user
  passed in. That way, it is made very clear how the suggested value
  is to be used.
* it's a known weakness of the implementation that it operates on a
  flattened list of field names, and thus may make nonsensical
  suggestions.
* added punctuation to all errors

Fixes #67
[skip ci]
This commit is contained in:
Sebastian Thiel
2015-05-02 14:03:35 +02:00
parent d2a4e2ff8b
commit 96415d17ca
6 changed files with 117 additions and 30 deletions

View File

@@ -178,7 +178,7 @@ let arg_data = [
if mc.request_value:
args.append((
STRUCT_FLAG,
"Set various fields of the request structure",
"Set various fields of the request structure, matching the key=value form",
KEY_VALUE_ARG,
True,
True,
@@ -198,7 +198,7 @@ let arg_data = [
if mc.optional_props or parameters is not UNDEFINED:
args.append((
PARAM_FLAG,
"Set various fields of the request structure",
"Set various optional parameters, matching the key=value form",
VALUE_ARG,
False,
True,