]> git.ipfire.org Git - thirdparty/iproute2.git/commit
dpll: align help and man notation with actual option parsing main
authorPetr Oros <poros@redhat.com>
Tue, 12 May 2026 13:52:24 +0000 (15:52 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 17 May 2026 22:35:09 +0000 (15:35 -0700)
commit62d47c2dbc0eaecdd20c0e19406067488025e92e
treebcc5db913070d6205f8f00085ec0cea8608fac5c
parent87c66f79d8b09779c01c07122b0846f83b566dc1
dpll: align help and man notation with actual option parsing

dpll uses getopt_long(), which only accepts long options with the
"--" prefix.  The iproute2-wide "-X[name]" shorthand used in the
help text and man page implies a single-dash long form
(e.g. -Version, -json, -pretty) that getopt_long does not parse;
only -V/--Version, -j/--json and -p/--pretty actually work.

Replace the misleading shorthand with explicit "-V | --Version"
style so the documented forms match what the parser accepts, and
drop the redundant second usage line in help() that listed only a
subset of the options and implied dpll could be invoked without an
OBJECT.  No functional change.

Signed-off-by: Petr Oros <poros@redhat.com>
Reviewed-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
dpll/dpll.c
man/man8/dpll.8