HomeClusterLabs Projects

Refactor: libcrmcommon: Add pcmk__output_and_clear_error.

Description

Refactor: libcrmcommon: Add pcmk__output_and_clear_error.

This turns a common code block at the end of most command line tools
into a function. Using it does not require converting the tool to
formatted output first. However, it's probably best to at least get it
using glib for command line processing first.

Details

Provenance
clumensAuthored on Jan 28 2021, 2:53 PM
Parents
rPf4068c60cd7e: Low: tools: Remove "if (optind > argc)" blocks from some tools.
Branches
Unknown
Tags
Unknown

Event Timeline