src/cline.c

changeset 59
c5409c8be36f
parent 57
68018eac46c3
child 60
69be673a4fd0
equal deleted inserted replaced
58:bb512754aaf3 59:c5409c8be36f
107 for (int t = 1 ; t < argc ; t++) { 107 for (int t = 1 ; t < argc ; t++) {
108 108
109 int argflags = checkArgument(argv[t], "hsSrRmvVbeE"); 109 int argflags = checkArgument(argv[t], "hsSrRmvVbeE");
110 int paropt = 0; 110 int paropt = 0;
111 111
112 /* h */
113 if ((argflags & 1) > 0 || strcmp(argv[t], "--help") == 0) {
114 return exit_with_help(settings, 0);
115 }
112 /* s */ 116 /* s */
113 if ((argflags & 2) > 0) { 117 if ((argflags & 2) > 0) {
114 if (!checkParamOpt(&paropt) || registerArgument(&checked, 2)) { 118 if (!checkParamOpt(&paropt) || registerArgument(&checked, 2)) {
115 return exit_with_help(settings, 1); 119 return exit_with_help(settings, 1);
116 } 120 }
128 t++; 132 t++;
129 if (t >= argc) { 133 if (t >= argc) {
130 return exit_with_help(settings, 1); 134 return exit_with_help(settings, 1);
131 } 135 }
132 excludeSuffix = argv[t]; 136 excludeSuffix = argv[t];
133 }
134 /* h */
135 if ((argflags & 1) > 0 || strcmp(argv[t], "--help") == 0) {
136 return exit_with_help(settings, 0);
137 } 137 }
138 /* r, R */ 138 /* r, R */
139 if ((argflags & 24) > 0) { 139 if ((argflags & 24) > 0) {
140 if (registerArgument(&checked, 24)) { 140 if (registerArgument(&checked, 24)) {
141 return exit_with_help(settings, 1); 141 return exit_with_help(settings, 1);

mercurial