From 0b1fe005b36ebc3af8de0d736e4a1227ba4580f8 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 27 Mar 2012 19:49:12 +0100 Subject: [parseopt] Allow "prompt" command to accept character literals for --key Signed-off-by: Michael Brown --- src/image/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/image') diff --git a/src/image/script.c b/src/image/script.c index fb89e42..460fbf0 100644 --- a/src/image/script.c +++ b/src/image/script.c @@ -302,7 +302,7 @@ struct prompt_options { /** "prompt" option list */ static struct option_descriptor prompt_opts[] = { OPTION_DESC ( "key", 'k', required_argument, - struct prompt_options, key, parse_integer ), + struct prompt_options, key, parse_key ), OPTION_DESC ( "timeout", 't', required_argument, struct prompt_options, timeout, parse_integer ), }; -- cgit v1.1