Index: uspace/app/bdsh/cmds/modules/mkfile/mkfile.c
===================================================================
--- uspace/app/bdsh/cmds/modules/mkfile/mkfile.c	(revision f9d8c3a1a429f15c579ef46dabfedf9f4eda1b34)
+++ uspace/app/bdsh/cmds/modules/mkfile/mkfile.c	(revision 003504fcbb88dc60bc2333d51f6664f36e03d56c)
@@ -126,5 +126,5 @@
 	argc = cli_count_args(argv);
 
-	for (c = 0, optind = 0, opt_ind = 0; c != -1;) {
+	for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) {
 		c = getopt_long(argc, argv, "ps:h", long_options, &opt_ind);
 		switch (c) {
