zkey: Add support for sub-commands

Add support for sub-commands to zkey. Sub-commands allow to group a
set of commands within a sub command.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Ingo Franzki
2020-05-26 14:42:24 +02:00
committed by Jan Höppner
parent 6a860a01c3
commit 13f8709ec2
2 changed files with 127 additions and 38 deletions
+10 -1
View File
@@ -3,7 +3,7 @@
*
* Local helper functions
*
* Copyright IBM Corp. 2017, 2018
* Copyright IBM Corp. 2017, 2020
*
* s390-tools is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
@@ -25,6 +25,15 @@ static inline void misc_print_missing_command(void)
util_prg_print_parse_error();
}
/**
* Subcommand is missing
*/
static inline void misc_print_missing_sub_command(void)
{
warnx("Subcommand is required");
util_prg_print_parse_error();
}
/**
* Invalid command specified (for 'git' like tools)
*/