We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 156ceda commit b77ddf3Copy full SHA for b77ddf3
runner/run.cpp
@@ -806,17 +806,17 @@ int main(int argc, char *argv[]) {
806
for (int i = 2; i < argc; i += 1) {
807
// do some basic validation
808
char *parm = argv[i+1];
809
+ // uniarg means the arg comes right after the letter in accordance with posix
810
+ int uniarg = strlen(argv[i]) > 2;
811
812
if (argv[i][0] != '-') {
813
error_usage();
814
} // must start with dash
815
- if strlen(argv[i]) < 2 {
816
+ if (strlen(argv[i]) < 2) {
817
818
} // must have at least dash '-' and option letter
819
- // uniarg means the arg comes right after the letter in accordance with posix
- int uniarg = strlen(argv[i]) > 2;
820
if (uniarg) {
821
parm=&argv[i][2];
822
} else if (i + 1 >= argc) {
0 commit comments