[Bug 637435] New: Various zypper options not working
https://bugzilla.novell.com/show_bug.cgi?id=637435 https://bugzilla.novell.com/show_bug.cgi?id=637435#c0 Summary: Various zypper options not working Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: kamikazow@web.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-DE) AppleWebKit/533.3 (KHTML, like Gecko) rekonq Safari/533.3 I fiddeled a bit with the zypper CLI client to find that some options don't work the way they are printed by the help screen. For "zypper help rm" those options are wrong: "zypper --clean-deps rm foo" as well as "--no-clean-deps" does not work (zypper says 'Unknown option'). zypper prints two dashes in the help screen, the actual options are "-clean-deps" and "-no-clean-deps" with only a single dash each. "--dry-run" works neither. Only "-D" works. "--type" works neither. Only "-t" works. I tried "sudo zypper rm amarok --dry-run" to make sure zypper does not expect options to be sometimes before "rm" and sometimes at the end of the command but "'-dry-run' is not a package name or capability" was printed instead. I'll update this bug as soon as I encounter more non-working / mismatching options. Reproducible: Always Expected Results: At lest the two 'clean-deps" options should be modified to work with two dashes. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=637435 https://bugzilla.novell.com/show_bug.cgi?id=637435#c1 --- Comment #1 from Michael Schröder <mls@novell.com> 2010-09-07 08:40:03 UTC --- Like many packages with "subcommands" (e.g. git) the syntax is <command> [command-options] <subcommand> [subcommand-options] [args...] Thus it is: zypper rm --dry-run ('git --numstat log' also prints "Unknown option: --numstat".) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=637435 https://bugzilla.novell.com/show_bug.cgi?id=637435#c2 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Michael Andres <ma@novell.com> 2010-09-07 10:55:16 CEST --- See also 'man zypper'. If there was a dash-problem, it is fixed in zypper-1.4.7: $ zypper --version zypper 1.4.7 $ sudo zypper rm -clean-deps a Repository 'lean-deps' not found by its alias, number, or URI. ## JFYI ## -c is an alias to zypper's '--repo <alias>' so it's read as ## -c lean-deps $ sudo zypper rm --clean-deps a Loading repository data... Reading installed packages... ## ... as expected. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=637435 https://bugzilla.novell.com/show_bug.cgi?id=637435#c3 --- Comment #3 from Ján Kupec <jkupec@novell.com> 2010-09-07 09:08:06 UTC --- 'zypper -clean-deps rm' *seemed* to work, because there is the -c/--config global option expecting a path to alternative config file (hmm.. it should tell such config file does not exist). Only the global options listed by 'zypper help' are allowed before the command. BTW, also 'zypper --help', which is pretty standard among command line tools prints the usage form: $ LANG=C zypper --help Usage: zypper [--global-options] <command> [--command-options] [arguments] -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com