mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdump/opts: Make parsing of command line arguments testable
Make the C module responsible for the parsing of command-line arguments independent of other global variables. This improves its testability. Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
1005e7be7e
commit
df338a3bac
+1
-1
@@ -177,7 +177,7 @@ static int do_stdout(void)
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
sig_handler_init();
|
||||
opts_parse(argc, argv);
|
||||
opts_parse(argc, argv, &g.opts);
|
||||
|
||||
switch (g.opts.action) {
|
||||
case ZG_ACTION_STDOUT:
|
||||
|
||||
Reference in New Issue
Block a user