• Lars Gierth's avatar
    parse: fix handling of unwanted stdin · 2eea1b05
    Lars Gierth authored
    There can be non-terminal (i.e. non-interactive) sessions
    that are *not* a pipe, for example:
    
    	ssh user@host ipfs version
    
    In this case, it looks like we should read from stdin.
    Parsing stdin is accomplished by deliberately triggering
    the parsing loop once.
    
    We didn't previously check whether there is an ArgDef to support
    that loop iteration.
    2eea1b05
parse.go 9.51 KB