aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index 64edb45..dc4fcfb 100644
--- a/src/util.c
+++ b/src/util.c
@@ -75,8 +75,7 @@ bool get_stock_info(char *symbol, struct money_t *price, char **name_ret)
if(res != CURLE_OK || buf.data[0] != '"')
{
- output("Failed querying information for '%s'.\n", symbol);
- return false;
+ fail("Failed to query information for '%s'.\n", symbol);
}
/* null-terminate buffer */
@@ -329,6 +328,11 @@ uint parse_args(int argc, char *argv[], char **port_file)
{
break;
}
+ else
+ {
+ output("Unrecognized option '%s'\nTry %s --help for more information.\n", arg, argv[0]);
+ ret |= ARG_FAILURE;
+ }
}
else
{