• Thomas Gardner's avatar
    commands/cli: fix parsing of incorrect permutations · 7bfedab0
    Thomas Gardner authored
    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: default avatarThomas Gardner <tmg@fastmail.com>
    7bfedab0
parse.go 11.1 KB