Put -- prefix in front of flag suggestions
commit790e0f3995e083bb6208e167f595ccea72ea9e69
authorEvan Czaplicki <evancz@users.noreply.github.com>
dateTue 3 Apr 2018, 23:51 (9 years ago)
parentaefea20
ui/terminal/src/Terminal/Args/Chomp.hs+1−1
@@ -440,7 +440,7 @@ suggestFlag unknownFlags flags targetIndex =
440440
441441 Chunk index _ : otherUnknownFlags ->
442442 if index == targetIndex then
443− Just (return (getFlagNames flags []))
443+ Just (return (map ("--" ++) (getFlagNames flags [])))
444444 else
445445 suggestFlag otherUnknownFlags flags targetIndex
446446