Skip to content

Explicitly fail when there are unexpected arguments #942

@jsoriano

Description

@jsoriano

Most elastic-package subcommands are configured using flags, and they don't expect additional arguments. Currently additional arguments are ignored, what leads to confusion on certain use cases.

For example in #941, separating the services of the --services flags with spaces instead of commas leads to ignoring all the services except the first one.

elastic-package should fail when unexpected additional arguments are received to avoid having parameters silently ignored. Maybe showing the help text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:EcosystemLabel for the Packages Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions