From ef9e018eef58837209ce47b332314629fa4c8217 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sun, 9 Mar 2014 14:26:45 +0000 Subject: [PATCH] fixed help output and a typo --- c/cmdlineoptions.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/c/cmdlineoptions.c b/c/cmdlineoptions.c index 3755243..b3e5ca5 100644 --- a/c/cmdlineoptions.c +++ b/c/cmdlineoptions.c @@ -158,7 +158,7 @@ int CmdLO_Parse(int argc, char** argv) { printf("]\n"); printf("\t\t%s\n", node->option->description); if (node->option->possibleparametercount > 0) { - printf("(possible parameters:"); + printf("\t\t(possible parameters:"); for (i = 0; i < node->option->possibleparametercount; ++i) { printf("\"%s\"", node->option->possibleparameters[i]); if (i < node->option->possibleparametercount - 1) { @@ -185,7 +185,7 @@ int CmdLO_Parse(int argc, char** argv) { printf("\n"); node = node->next; } - printf("/options"); + printf("/options\n"); } // no arguments! return 1; @@ -281,8 +281,8 @@ void CmdLO_Destroy() { if (node->option->possibleparametercount > 0) { i = 0; for (; i < node->option->possibleparametercount; ++i) - free(node->option->possibleparametercount[i]); - free(node->option->possibleparametercount); + free(node->option->possibleparameters[i]); + free(node->option->possibleparameters); } if (node->option->valuecount > 0) { i = 0;