summaryrefslogtreecommitdiff
path: root/src/bin/eolian/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/eolian/main.c')
-rw-r--r--src/bin/eolian/main.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/bin/eolian/main.c b/src/bin/eolian/main.c
index 0e7c0901f4..f2dbd5a8e8 100644
--- a/src/bin/eolian/main.c
+++ b/src/bin/eolian/main.c
@@ -315,7 +315,7 @@ static int legacy_support = 0;
315int main(int argc, char **argv) 315int main(int argc, char **argv)
316{ 316{
317 int ret = 1; 317 int ret = 1;
318 Eina_Bool help = EINA_FALSE, show = EINA_FALSE; 318 Eina_Bool help = EINA_FALSE;
319 const char *eo_filename = NULL; 319 const char *eo_filename = NULL;
320 char *output_filename = NULL; /* if NULL, have to generate, otherwise use the name stored there */ 320 char *output_filename = NULL; /* if NULL, have to generate, otherwise use the name stored there */
321 char *eo_filename_copy = NULL, *eo_file_basename; 321 char *eo_filename_copy = NULL, *eo_file_basename;
@@ -340,7 +340,6 @@ int main(int argc, char **argv)
340 { 340 {
341 /* These options set a flag. */ 341 /* These options set a flag. */
342 {"eo", no_argument, &eo_needed, 1}, 342 {"eo", no_argument, &eo_needed, 1},
343 {"verbose", no_argument, 0, 'v'},
344 {"help", no_argument, 0, 'h'}, 343 {"help", no_argument, 0, 'h'},
345 {"gh", no_argument, &gen_opt, H_GEN}, 344 {"gh", no_argument, &gen_opt, H_GEN},
346 {"gc", no_argument, &gen_opt, C_GEN}, 345 {"gc", no_argument, &gen_opt, C_GEN},
@@ -361,7 +360,6 @@ int main(int argc, char **argv)
361 output_filename = strdup(optarg); 360 output_filename = strdup(optarg);
362 break; 361 break;
363 } 362 }
364 case 'v': show = EINA_TRUE; break;
365 case 'h': help = EINA_TRUE; break; 363 case 'h': help = EINA_TRUE; break;
366 case 'I': 364 case 'I':
367 { 365 {
@@ -380,7 +378,7 @@ int main(int argc, char **argv)
380 378
381 if (help) 379 if (help)
382 { 380 {
383 printf("Usage: %s [-h/--help] [-v/--verbose] [-I/--include input_dir] [--legacy] [--gh|--gc|--gi] [--output/-o outfile] file.eo ... \n", argv[0]); 381 printf("Usage: %s [-h/--help] [-I/--include input_dir] [--legacy] [--gh|--gc|--gi] [--output/-o outfile] file.eo ... \n", argv[0]);
384 printf(" --help/-h Print that help\n"); 382 printf(" --help/-h Print that help\n");
385 printf(" --include/-I Include 'input_dir' as directory to search .eo files into\n"); 383 printf(" --include/-I Include 'input_dir' as directory to search .eo files into\n");
386 printf(" --output/-o Force output filename to 'outfile'\n"); 384 printf(" --output/-o Force output filename to 'outfile'\n");
@@ -416,11 +414,6 @@ int main(int argc, char **argv)
416 414
417 eo_filename_copy = strdup(eo_filename); 415 eo_filename_copy = strdup(eo_filename);
418 eo_file_basename = basename(eo_filename_copy); 416 eo_file_basename = basename(eo_filename_copy);
419 if (show)
420 {
421 const Eolian_Class *class = eolian_class_get_by_file(eo_file_basename);
422 if (class) eolian_show_class(class);
423 }
424 417
425 /* Only needed for .eo files */ 418 /* Only needed for .eo files */
426 if (is_eo && !eo_needed && !(gen_opt == H_GEN && legacy_support)) 419 if (is_eo && !eo_needed && !(gen_opt == H_GEN && legacy_support))