aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tru/tinyradutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tru/tinyradutil.c')
-rw-r--r--src/tru/tinyradutil.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/tru/tinyradutil.c b/src/tru/tinyradutil.c
index 2b5956d..0e1bef7 100644
--- a/src/tru/tinyradutil.c
+++ b/src/tru/tinyradutil.c
@@ -203,25 +203,6 @@ int main(int argc, char * argv[])
203 return(1); 203 return(1);
204 }; 204 };
205 205
206 // process widget cli options
207 if ((rc = tru_cli_parse(cnf, cnf->argc, cnf->argv, cnf->widget->shortopts, cnf->widget->longopts)) != 0)
208 {
209 tru_cleanup(cnf);
210 return((rc == 0) ? 0 : 1);
211 };
212 if ((cnf->argc - optind) < cnf->widget->min_arg)
213 {
214 fprintf(stderr, "%s: missing required argument\n", PROGRAM_NAME);
215 fprintf(stderr, "Try `%s %s --help' for more information.\n", PROGRAM_NAME, cnf->widget_name);
216 return(1);
217 };
218 if ((optind+cnf->widget->max_arg) > cnf->argc)
219 {
220 fprintf(stderr, "%s: unrecognized argument `-- %s'\n", PROGRAM_NAME, cnf->argv[optind+1]);
221 fprintf(stderr, "Try `%s %s --help' for more information.\n", PROGRAM_NAME, cnf->widget_name);
222 return(1);
223 };
224
225 // call widget 206 // call widget
226 rc = cnf->widget->func(cnf); 207 rc = cnf->widget->func(cnf);
227 tru_cleanup(cnf); 208 tru_cleanup(cnf);