From 684357d279989d49945afe0154e742c0e0e4c35a Mon Sep 17 00:00:00 2001 From: Xavier Mendez Date: Mon, 20 Oct 2014 00:27:28 +0200 Subject: [PATCH] bin-refactor: Make parse_options() consistent --- bin/common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/common.h b/bin/common.h index 14f850d..5d55acc 100644 --- a/bin/common.h +++ b/bin/common.h @@ -99,7 +99,8 @@ parse_options( /* Parse rest as forced arguments */ while (i < argc) { - parse_argument(regular_args++, argv[i], 1, opaque); + result = parse_argument(regular_args++, argv[i], 1, opaque); + if (!result) return 0; i++; }