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

Term.with_used_args is very buggy #204

Open
dbuenzli opened this issue Mar 8, 2025 · 0 comments
Open

Term.with_used_args is very buggy #204

dbuenzli opened this issue Mar 8, 2025 · 0 comments
Labels

Comments

@dbuenzli
Copy link
Owner

dbuenzli commented Mar 8, 2025

Term.with_used_args which discussed in #101 and implemented in #103 has many bugs.

  1. It reorders positional and optional arguments; that could be fine.
  2. It separates values from short option names. This is a bug.
  3. It seperates values from long option names. That could be fine.
  4. It does not report the -- token. This is a bug.

Shown here on the current test exectuble test_with_used_args

> b0 -- test_with_used_args -- hoho --bbb=bla
hoho --bbb=bla
> b0 -- test_with_used_args hoho -bbla
-b bla hoho
> b0 -- test_with_used_args hoho --bbb=bla
--bbb bla hoho
> b0 -- test_with_used_args -- hoho --bbb=bla
hoho --bbb=bla
@dbuenzli dbuenzli added the bug label Mar 8, 2025
dbuenzli added a commit that referenced this issue Mar 9, 2025
They used to be only test executables that had to be run manually.
Incidentally we find #203 and #204 which will be fixed later.

Close #205
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant