Skip to content

fix(cli): reject arguments to plugin list - #335

Open
iamrajatrana wants to merge 1 commit into
apache:mainfrom
iamrajatrana:fix/plugin-list-reject-args
Open

fix(cli): reject arguments to plugin list#335
iamrajatrana wants to merge 1 commit into
apache:mainfrom
iamrajatrana:fix/plugin-list-reject-args

Conversation

@iamrajatrana

@iamrajatrana iamrajatrana commented Aug 19, 2026

Copy link
Copy Markdown

Summary

Reject unexpected positional arguments passed to ossie plugin list instead of silently ignoring them and returning success. Adds table-driven coverage for zero, one, and multiple arguments.

Before

$ ossie plugin list unexpected
no plugins installed
$ echo $?
0

Unexpected arguments were silently ignored.

After

$ ossie plugin list unexpected
Error: unknown command "unexpected" for "ossie plugin list"
$ echo $?
1

Unexpected arguments are rejected with a non-zero exit code.

Related Issues

Closes #334

Tests

  • go test ./...
  • go vet ./...
  • go build ./...
  • Black-box verification that ossie plugin list unexpected exits with status 1

Checklist

  • New behavior is covered by tests
  • All existing CLI tests pass
  • ASF license header is present on the new test file
  • No third-party dependencies were added

Signed-off-by: iamrajatrana <rjtrana16@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cli: plugin list silently ignores unexpected positional arguments

1 participant