diff options
author | Werner Koch <[email protected]> | 2019-02-07 07:16:02 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-02-07 07:16:02 +0000 |
commit | 090b5f804aee41a36a9ee1fbf0976109970d810d (patch) | |
tree | 0dcb2c3c50dc27712ab89b3e56f0c1d784cab82d | |
parent | scd: Add genkey command to app-piv (rsa-only) (diff) | |
download | gnupg-090b5f804aee41a36a9ee1fbf0976109970d810d.tar.gz gnupg-090b5f804aee41a36a9ee1fbf0976109970d810d.zip |
card: Add readline completion for help arguments
--
-rw-r--r-- | tools/gpg-card-tool.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/gpg-card-tool.c b/tools/gpg-card-tool.c index fd7aa9a7e..08248f766 100644 --- a/tools/gpg-card-tool.c +++ b/tools/gpg-card-tool.c @@ -3249,9 +3249,12 @@ command_completion (const char *text, int start, int end) (void)end; /* If we are at the start of a line, we try and command-complete. - * If not, just do nothing for now. */ + * If not, just do nothing for now. The support for help completion + * needs to be more smarter. */ if (!start) return rl_completion_matches (text, command_generator); + else if (start == 5 && !ascii_strncasecmp (rl_line_buffer, "help ", 5)) + return rl_completion_matches (text, command_generator); rl_attempted_completion_over = 1; |