From 460dde6031342996e143587d46bdf36401527c67 Mon Sep 17 00:00:00 2001 From: Iwan Timmer Date: Sun, 10 May 2015 23:46:52 +0200 Subject: [PATCH] Correct actions --- src/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 41d050e..ab5f666 100644 --- a/src/main.c +++ b/src/main.c @@ -164,7 +164,7 @@ int main(int argc, char* argv[]) { } } - if (strcmp("help", action) == 0) + if (action == NULL || strcmp("help", action) == 0) help(); if (address == NULL) { @@ -178,4 +178,8 @@ int main(int argc, char* argv[]) { applist(address); else if (strcmp("stream", action) == 0) stream(&config, address, app); + else if (strcmp("pair", action) == 0) + client_pair(address); + else + fprintf(stderr, "%s is not a valid actions\n", action); }