-
Notifications
You must be signed in to change notification settings - Fork 1
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
repo-add does not behave the same as Arch's version #2
Comments
That isn't correct behavior for original |
Following the man page and help message, what you said does make sense. So, accepting options/flags after positional arguments is a bug in the original Depending on how long ago this bug got introduced in Arch's |
actually keep in mind that I also think that original |
I can remove |
#1 also breaks out of the loop in that case.
#1 works with current Paru (or a possible future Paru that uses
|
fixed in #1 |
Hello! I've noticed an inconsistency in how repo-{add,remove} behaves.
It is my understanding that when
--
occurs in the command line, all arguments after it are to be treated as positional arguments.However, before
--
, it's expected a flag might occur anywhere — even mixed with positional arguments.I caught this behavior because I use Paru, and with the
SignDb
option enabled, it puts the-s
flag after all the positional arguments — maybe not ideal, but not incorrect usage either.Reproduction:
repo-add SOME_DB SOME_PACKAGE -s
works with Arch'srepo-add
, but not with CachyOS's.#1 seems to fix this, but there's likely some edge case I haven't thought of. Please, do tell if that's the case.
The text was updated successfully, but these errors were encountered: