diff lwar/main.c @ 449:96a05e89ab03

Fix command line bug in lwar lwar wasn't properly handling lw_cmdline_key_end so when bugs with bailout handling in lw_cmdline were fixed, lwar broke. This should fix it.
author William Astle <lost@l-w.ca>
date Sat, 02 Dec 2017 22:28:31 -0700
parents b138b4005125
children a6c9129e5948
line wrap: on
line diff
--- a/lwar/main.c	Thu Nov 30 17:38:24 2017 -0700
+++ b/lwar/main.c	Sat Dec 02 22:28:31 2017 -0700
@@ -96,6 +96,9 @@
 			archive_file = arg;
 		break;
 		
+	case lw_cmdline_key_end:
+		break;
+
 	default:
 		return lw_cmdline_err_unknown;
 	}
@@ -143,6 +146,7 @@
 int main(int argc, char **argv)
 {
 	program_name = argv[0];
+
 	if (lw_cmdline_parse(&argparser, argc, argv, 0, 0, NULL) != 0)
 	{
 		exit(1);