summaryrefslogtreecommitdiffstats
path: root/tests/cmdline.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cmdline.c')
-rw-r--r--tests/cmdline.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/cmdline.c b/tests/cmdline.c
index 0f3b7fc..ea1c90b 100644
--- a/tests/cmdline.c
+++ b/tests/cmdline.c
@@ -20,6 +20,14 @@ static struct argp_option options[] = {
.doc = "Don't fork the testcases",
.group = 0
},
+ {
+ .name = "verbose",
+ .key = 'v',
+ .arg = NULL,
+ .flags = 0,
+ .doc = "Make libssh test more verbose",
+ .group = 0
+ },
{NULL, 0, NULL, 0, NULL, 0}
};
@@ -37,6 +45,9 @@ static error_t parse_opt (int key, char *arg, struct argp_state *state) {
case 'n':
arguments->nofork = 1;
break;
+ case 'v':
+ arguments->verbose++;
+ break;
case ARGP_KEY_ARG:
/* End processing here. */
cmdline = &state->argv [state->next - 1];