Allow applets with optarg string NULL to use toy.optargs[].
diff --git a/main.c b/main.c
index 56d6eb3..3a50f39 100644
--- a/main.c
+++ b/main.c
@@ -58,18 +58,19 @@
 	toys.argv = argv;
 	toys.exitval = 1;
 	if (which->options) get_optflags();
+	else toys.optargs = argv+1;
 }
 
 // Run a toy.
 void toy_exec(char *argv[])
 {
 	struct toy_list *which;
-	
+
 	which = toy_find(argv[0]);
 	if (!which) return;
 
 	toy_init(which, argv);
-	
+
 	exit(toys.which->toy_main());
 }