shared/shell: Fix short option parsing

The index value used for detecting and validating a short option
was not reset after processing a first short option.
This prevented the correct parsing of additional short options.
Fixed by resetting the index value back to original after each
iteration.
diff --git a/src/shared/shell.c b/src/shared/shell.c
index 9cd8d25..10f2626 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -957,6 +957,8 @@
 
 			*opt->optarg[index - offset] = optarg;
 		}
+
+		index = -1;
 	}
 
 	data.argc = argc - optind;