Unknown flag is not treated as uknown #124
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: petsam
Running
pacman-mirrors -Gthe script updated mirrors in/etc/pacman.d/mirrorlistExpected behavior should be an info/error message about uknown flag. I did not want my mirrorlist affected, since I manually handle it.
Created by: fhdk
-Gis not an unknown argument/flag - it is an API argument and as such it does not work if-a/--apiis missing.It is documented in https://github.com/manjaro/pacman-mirrors/blob/master/docs/index.md in GENERAL INFO ABOUT ARGUMENTS section
and
and in the API section
Created by: petsam
The expected behavior would be to… what in your opinion?
If the script understands the args, do a refresh mirrors action? Is this at least documented?
Please, don't close the issues before at least get some more response. It is not nice.
Created by: fhdk
-Git is a documented as belonging to theAPIgroup--apiis not supplied then any API argument present will be ignored.--no-mirrorlistis specified - to create a mirror list.-h, all API arguments is clearly marked with APISince the subject of the issue is claiming the -G argument is unknown and undocumented then the issue is not an issue and can be closed when the solution is presented.
We do not need a lengthy debate whether it is documented or not since it is, and the behavior is expected.
Also have look at issue #126 and issue #125
Created by: fhdk
Duplicate - see #125
Created by: petsam
From
man pacman-mirrrorsWhich you say it is not exactly right.
I thought feedback was welcome.
Sorry.
Have a nice flight.
Created by: fhdk
But an argument is given
-GAnd feedback are welcome.
Created by: petsam
that is not handled correctly.
This is an issue, whether you close the issue, or not.
I have read half the code to understand as I can and very well read man page and help.
I have used the script and decided to not use it unless for testing.
Well done! There are no open issues on pacman-mirrors. That's a great achievment!
Created by: fhdk
github.com/manjaro/pacman-mirrors@5eda817fbc