card: Add command "bye"

* tools/gpg-card.c: Add command "bye" as alias for "quit".
* tools/gpg-connect-agent.c (main): Add "/quit" as alias for "/bye"
This commit is contained in:
Werner Koch 2020-05-27 11:43:14 +02:00
parent 46a3de4b5a
commit 08310849a2
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
2 changed files with 2 additions and 1 deletions

View File

@ -3152,6 +3152,7 @@ static struct
} cmds[] = {
{ "quit" , cmdQUIT, N_("quit this menu")},
{ "q" , cmdQUIT, NULL },
{ "bye" , cmdQUIT, NULL },
{ "help" , cmdHELP, N_("show this help")},
{ "?" , cmdHELP, NULL },
{ "list" , cmdLIST, N_("list all available data")},

View File

@ -1809,7 +1809,7 @@ main (int argc, char **argv)
}
}
}
else if (!strcmp (cmd, "bye"))
else if (!strcmp (cmd, "bye") || !strcmp (cmd, "quit"))
{
break;
}