mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Add generation of shell autocompletion scripts. Acked-by: Steffen Eiden <seiden@linux.ibm.com> Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Szabina Korbai <szkorbai@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
43 lines
861 B
C
43 lines
861 B
C
/*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
* Copyright IBM Corp.
|
|
*/
|
|
|
|
#ifndef ZPWR_CLI_H
|
|
#define ZPWR_CLI_H
|
|
|
|
#include "lib/util_fmt.h"
|
|
#include "lib/util_opt.h"
|
|
|
|
#define OPT_FORMAT 256
|
|
|
|
static struct util_opt opt_vec[] = {
|
|
UTIL_OPT_SECTION("OPTIONS"),
|
|
{
|
|
.option = { "format", required_argument, NULL, OPT_FORMAT },
|
|
.argument = "FORMAT",
|
|
.flags = UTIL_OPT_FLAG_NOSHORT,
|
|
.desc = "List data in specified FORMAT (" FMT_TYPE_NAMES ")",
|
|
},
|
|
{
|
|
.option = { "delay", required_argument, NULL, 'd' },
|
|
.argument = "NUMBER",
|
|
.desc = "Power readings after delay (seconds)",
|
|
},
|
|
{
|
|
.option = { "count", required_argument, NULL, 'c' },
|
|
.argument = "NUMBER",
|
|
.desc = "Number of power readings",
|
|
},
|
|
{
|
|
.option = { "stream", no_argument, NULL, 's' },
|
|
.desc = "Power readings in stream mode",
|
|
},
|
|
UTIL_OPT_HELP,
|
|
UTIL_OPT_VERSION,
|
|
UTIL_OPT_END
|
|
};
|
|
|
|
#endif
|