aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-06-18 00:12:01 +0100
committerJames Booth <boothj5@gmail.com>2015-06-18 00:12:01 +0100
commit85cc5ab50deaec93f5520f3d587fba57040c2c88 (patch)
tree6befe6d8c0dbcb692fe85a9b42363f56a2504032 /src/command
parent97ba9d269296022ae4936f8316fa73337bba39a8 (diff)
downloadprofani-tty-85cc5ab50deaec93f5520f3d587fba57040c2c88.tar.gz
Added cmd_pgp tests
Diffstat (limited to 'src/command')
-rw-r--r--src/command/commands.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index ba387028..85a85131 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -4123,7 +4123,10 @@ gboolean
cmd_pgp(ProfWin *window, gchar **args, struct cmd_help_t help)
{
#ifdef HAVE_LIBGPGME
- if (g_strcmp0(args[0], "keys") == 0) {
+ if (args[0] == NULL) {
+ cons_show("Usage: %s", help.usage);
+ return TRUE;
+ } else if (g_strcmp0(args[0], "keys") == 0) {
GSList *keys = p_gpg_list_keys();
if (keys) {
cons_show("PGP keys:");