Skip to content

[bug] CLI arguments do not work #390

@DanSM-5

Description

@DanSM-5

I attempted to use qrcode from the command line but all command line arguments appear to be broken in some way.

  • The --version, -h or --help are processed as the <input string>
  • arguments -o, -t and -w cause a curl: (3) URL rejected: Malformed input to a URL function error.

Steps to reproduce

npm i -g qrcode
# Should install qrcode@1.5.4
qrcode -o test.png 'hello'
curl: (3) URL rejected: Malformed input to a URL function

I attempted with node 18 and 20. I didn't see any specific version of node mentioned.

Using qrcode as a node module works fine which means only the argument parsing may have issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions