HomeClusterLabs Projects

Fix: libcrmcommon: Allow glib cmdline parsing without formatted output.

Description

Fix: libcrmcommon: Allow glib cmdline parsing without formatted output.

If pcmkbuild_arg_context is given NULL for the fmts argument, it simply
will not add the formatted output command line options. Care should be
taken to make sure that pcmk
register_formats is not called if NULL is
given, as calling that function will result in other formatted output
options potentially being added. The result could be confusing for a
user.

Also, get rid of output_ty_desc. It no longer serves any purpose and is
entirely duplicated by the description being built in
pcmk__build_arg_context.

Details

Provenance
clumensAuthored on Jul 24 2019, 12:34 PM
Parents
rP0caf1c9eca61: Merge pull request #1837 from clumens/cts
Branches
Unknown
Tags
Unknown

Event Timeline