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

OSTree subcommand handler passes subcommand to itself #3321

Open
Thesola10 opened this issue Oct 9, 2024 · 0 comments
Open

OSTree subcommand handler passes subcommand to itself #3321

Thesola10 opened this issue Oct 9, 2024 · 0 comments

Comments

@Thesola10
Copy link

Like Git, the ostree command will look for a named command ostree-$subcommand in PATH when invoked with a subcommand it doesn't know. Unlike Git however, it passes its entire set of arguments, including the subcommand as argv[1], to the child program.

What should happen, with ostree-ext-cli as an example:

$ ostree ext-cli
ostree-ext
Toplevel options for extended ostree functionality
...

What actually happens:

$ ostree ext-cli
error: Found argument 'ext-cli' which wasn't expected, or isn't valid in this context
...
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

No branches or pull requests

1 participant