Skip to content

doc: clarify --quiet for needs-rebooting is a global option - #657

Open
magic-peach wants to merge 1 commit into
openSUSE:masterfrom
magic-peach:docs/needs-rebooting-quiet-is-global
Open

magic-peach wants to merge 1 commit into
openSUSE:masterfrom
magic-peach:docs/needs-rebooting-quiet-is-global

Conversation

@magic-peach

Copy link
Copy Markdown

Fixes #610

The man page's needs-rebooting section says "Use --quiet to suppress the normal output" right after describing the command, which reads like a command specific flag. Running zypper needs-rebooting --quiet actually fails with "The flag --quiet is not known", since needs-rebooting defines no command specific options at all (confirmed in src/commands/needs-rebooting.cc, cmdOptions() returns an empty CommandGroup). --quiet is a global option (src/Config.cc) and, per the GLOBAL OPTIONS section itself, must be given before the command name.

Verified no other subcommand in src/commands/ defines its own local --quiet, so the man page's wording was the actual bug, not the missing flag. Reworded the sentence to say --quiet is the global option and must come before the command name, matching how other sections of the same man page reference global options (e.g. --ignore-unknown global option, --releasever global option).

Docs only, no code change.

The needs-rebooting section told users to "use --quiet to suppress
the normal output" right after describing the command, which reads
as a command specific flag. zypper needs-rebooting --quiet actually
fails with "The flag --quiet is not known", since --quiet is only a
global option and must come before the command name, per issue openSUSE#610.
Point that out explicitly instead of leaving it ambiguous.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

needs-rebooting "The flag --quiet is not known."

1 participant