mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-02 14:58:03 +08:00
main: Pass Stdin to CLI request parser
This commit is contained in:
parent
00b19f8876
commit
1abe97617e
@ -159,7 +159,7 @@ func (i *cmdInvocation) Run() (output io.Reader, err error) {
|
||||
func (i *cmdInvocation) Parse(args []string) error {
|
||||
var err error
|
||||
|
||||
i.req, i.cmd, i.path, err = cmdsCli.Parse(args, Root)
|
||||
i.req, i.cmd, i.path, err = cmdsCli.Parse(args, os.Stdin, Root)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user