aboutsummaryrefslogtreecommitdiffstats
path: root/src/arg.rs
diff options
context:
space:
mode:
authorTeddy Wing2020-08-29 19:37:39 +0200
committerTeddy Wing2020-08-29 20:48:48 +0200
commit760d49ce6f4a8b1f631fec654ae87300474541a9 (patch)
treed67c26b33cbe69ac8dc0fc7ea2a067be45cc177d /src/arg.rs
parent8706dc07bcf3b4c965de8e9dd050bd8b97ebc693 (diff)
downloadgit-suggestion-760d49ce6f4a8b1f631fec654ae87300474541a9.tar.bz2
diff_options: Remove non-equals argument value handling
Tested out diff arguments with Git, and it turns out that arguments in the following form: $ git diff --word-diff color are not allowed. This error results: fatal: ambiguous argument 'color': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]' Thus, option all arguments require the equals character to specify the value of those arguments. We can make the logic much simpler by eliminating handling of space-separated argument values altogether. This fixes the problem of suggestion positional arguments being misinterpreted as `OPT_OPTIONS` argument values.
Diffstat (limited to 'src/arg.rs')
0 files changed, 0 insertions, 0 deletions