Skip to content

Throw exception when unknown argument provided #234

Description

@g105b

Named arguments --like-this or short versions like -l should only be accepted if they are defined. I just tried using a cli script with an incorrectly named argument and it just ignored it... easy mistake to make, but it would have been nice to have been recognised by the system. An error message like Invalid argument supplied: "--something" would have been nice.

Activity

  1. added
    enhancementNon-breaking improvements to existing behaviour
    help wantedExtra input or contributions needed
    good first issueSuitable starting point for new contributors
    on May 22, 2023
  2. added theissue type on Oct 3, 2025
  3. self-assigned this
    on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNon-breaking improvements to existing behaviourgood first issueSuitable starting point for new contributorshelp wantedExtra input or contributions needed

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions