Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

CLI getIpfs uses wrong args object #1947

@hugomrdias

Description

@hugomrdias
  • Version:
  • Platform:
  • Subsystem:

Type: Bug

Severity: High

Description:

this line
https://github.com/ipfs/js-ipfs/blob/master/src/cli/bin.js#L48
passes an argv obj that wasn't created with our yargs config

This makes cmds like ipfs add --silent ./path/file to instantiate IPFS with { silent : './path/file' }

Right now master doesn't fail because silent wasn't added to the validation yet, still this behaviour should be fixed.

Steps to reproduce the error:

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low: Not priority right nowexp/noviceSomeone with a little familiarity can pick upkind/bugA bug in existing code (including security flaws)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions