Bug ID 984901
Summary Documentation bug: Manpage & help don't mention that "zypper mr -n" needs an argument (new name) before the repo identifier
Classification openSUSE
Product openSUSE Distribution
Version Leap 42.1
Hardware All
OS openSUSE 42.1
Status NEW
Severity Minor
Priority P5 - None
Component libzypp
Assignee zypp-maintainers@forge.provo.novell.com
Reporter antoine.mechelynck@gmail.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

For other options requiring an argument, this is stated, i.e.
  -p --priority _positive integer_
  -m --medium-type _type_
in the "modifyrepo (mr)" section of the zypper manpage, or
  -p --priority <integer>
  -m --medium-type <type>
in the "zypper help mr" text.

Not so for the -n --name option. So how is the new name specified?
Interactively, by zypper asking you a question? No. After the repo identifier?
No. Only by specifying the new name immediately after the option, before the
repo (existing) name, alias, # or URL, will the desired result be obtained.

This is the opposite of what happens for "zypper nr" (zypper renamerepo) where
the new alias is specified after the repo's existing alias, name, # or URL.
This is understandable since in "zypper nr" the alias is not an option argument
but IMHO an explicit mention in the docs would be useful.


You are receiving this mail because: