Skip to content

[Bug?] Confusing error message #222

@udontur

Description

@udontur

Describe the bug?
When the command is invalid, it says error: too many arguments. Expected 0 arguments but got 1

To Reproduce
Type instagram-cli afsdljkasdfljk in the terminal. Only happens when there are no flags.

Expected behavior
It's quite confusing, so maybe it could be error: Invalid arguments 'afsdljkasdfljk' then show the --help stuff like the output you have for invalid flags.

Screenshots
Image

Desktop (please complete the following information):

  • OS: NixOS Unstable (Linux 6.12)
  • Browser: Zen 1.17.12b (Firefox based)
  • Version: v1.4.0 built using npm run build

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomerstypescriptTS client related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions