Closed petsam closed 6 years ago
-G
is not an unknown argument/flag - it is an API argument and as such it does not work if -a/--api
is missing.
It is documented in https://github.com/manjaro/pacman-mirrors/blob/master/docs/index.md in GENERAL INFO ABOUT ARGUMENTS section
Some arguments requires another argument present to have effect.
and
API specific arguments. For those to have effect the -a/--api argument must be present.
and in the API section
-G, --get-branch : Return branch from configuration.
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.
-G
it is a documented as belonging to the API
group--api
is not supplied then any API argument present will be ignored.--no-mirrorlist
is 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
Duplicate - see #125
From man pacman-mirrrors
> If no arguments are given pacman-mirrors lists available options.
Which you say it is not exactly right.
Normal behavior when one or more arguments is present is to parse the arguments and - unless --no-mirrorlist is specified - to create a mirror list.
I thought feedback was welcome. Sorry. Have a nice flight.
If no arguments are given pacman-mirrors lists available options.
But an argument is given -G
And feedback are welcome.
But an argument is given -G
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!
Running
pacman-mirrors -G
the script updated mirrors in/etc/pacman.d/mirrorlist
Expected behavior should be an info/error message about uknown flag. I did not want my mirrorlist affected, since I manually handle it.