commit | bb145c9c30b954dfa19de455859b7e2e22e22644 | [log] [tgz] |
---|---|---|
author | Norman James <njames@us.ibm.com> | Sun Nov 01 07:37:47 2015 -0600 |
committer | Norman James <njames@us.ibm.com> | Sun Nov 01 07:37:47 2015 -0600 |
tree | 5ce96daa8064fb1cbb5902dd3713c842d6e6d64e | |
parent | 0536d6e344d364c9dab240e27ab1f99809052bd4 [diff] |
exit if args are not correct
diff --git a/objects/flasher_obj.c b/objects/flasher_obj.c index 26bf441..93faa69 100644 --- a/objects/flasher_obj.c +++ b/objects/flasher_obj.c
@@ -370,6 +370,7 @@ if (cmd->argc < 4) { g_print("flasher [flash name] [filename] [source object]\n"); + g_main_loop_quit(cmd->loop); return; } printf("Starting flasher: %s,%s,%s,\n",cmd->argv[1],cmd->argv[2],cmd->argv[3]);