kubo/commands/cli
Thomas Gardner 3e824412d9 commands/cli: fix parsing of incorrect permutations
parseOpts now does some preliminary path screening to prevent
command sequences like

	`ipfs <hash> cat`

from succeeding. The tests affected by this have been slightly altered,
but should be restored once parseOpts is decoupled from path analysis.

Command suggestion printing has also been factored into a single
function.

Fixes: #2501
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-04-05 21:53:21 +10:00
..
cmd_suggestion.go commands/cli: fix parsing of incorrect permutations 2016-04-05 21:53:21 +10:00
helptext.go gofmt 2015-04-28 16:18:26 -07:00
parse_test.go commands/cli: fix parsing of incorrect permutations 2016-04-05 21:53:21 +10:00
parse.go commands/cli: fix parsing of incorrect permutations 2016-04-05 21:53:21 +10:00