Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commands which expect a single argument don't error when multiple are provided #330

Open
aryanjassal opened this issue Nov 15, 2024 · 1 comment
Assignees
Labels
development Standard development

Comments

@aryanjassal
Copy link
Member

Specification

There are commands which only accept a single positional argument, like secrets write. If multiple arguments are provided to the command, only the first argument is actually processed, and others are silently ignored.

This behaviour shouldn't happen, and if there are more positional arguments than expected, the command should fail and print the help menu.

Additional context

Tasks

  1. Error if multiple arguments are provided to a command which only accepts one
  2. Add tests to ensure this behaviour
@aryanjassal aryanjassal added the development Standard development label Nov 15, 2024
@aryanjassal aryanjassal self-assigned this Nov 15, 2024
Copy link

linear bot commented Nov 15, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Standard development
Development

No branches or pull requests

1 participant