summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvi Levin <avi.levin@samsung.com>2015-06-09 13:59:20 +0300
committerAvi Levin <avi.levin@samsung.com>2015-06-09 13:59:20 +0300
commit9fd8651b61eba779977bba0572aea56fce22424d (patch)
treef92eb12c41f221978e54420688948fe9f3103015
parent861a32fef74abb62fa615860ce295bb501f35723 (diff)
Eolian_info: improving help and fixing typing errors
-rw-r--r--src/bin/.main.c.swpbin36864 -> 36864 bytes
-rw-r--r--src/bin/main.c22
2 files changed, 11 insertions, 11 deletions
diff --git a/src/bin/.main.c.swp b/src/bin/.main.c.swp
index d32adfb..a8acd18 100644
--- a/src/bin/.main.c.swp
+++ b/src/bin/.main.c.swp
Binary files differ
diff --git a/src/bin/main.c b/src/bin/main.c
index 08212e9..8488dc4 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -6,12 +6,6 @@
6 6
7int _eolian_info_log_dom; 7int _eolian_info_log_dom;
8 8
9/*
10 *
11 * ** ./src/bin/eo_info_cmd --scope i_t -I /home/avilog/git/efl1/efl/src/lib/ -I /home/avilog/git/efl1/elementary/src/lib/ --class elm_layout.eo
12 *
13 */
14
15#ifdef ERR 9#ifdef ERR
16# undef ERR 10# undef ERR
17#endif 11#endif
@@ -37,7 +31,7 @@ int _eolian_info_log_dom;
37#endif 31#endif
38#define CRIT(...) EINA_LOG_DOM_CRIT(_eolian_info_log_dom, __VA_ARGS__) 32#define CRIT(...) EINA_LOG_DOM_CRIT(_eolian_info_log_dom, __VA_ARGS__)
39 33
40#define MAX_CHARS_FILTER 4 34#define MAX_CHARS_FILTER 40
41 35
42static void _file_filter(const Eolian_Class *ekl, Eina_Strbuf *buf); 36static void _file_filter(const Eolian_Class *ekl, Eina_Strbuf *buf);
43static void _event_filter(const Eolian_Class *ekl, Eina_Strbuf *buf); 37static void _event_filter(const Eolian_Class *ekl, Eina_Strbuf *buf);
@@ -154,7 +148,7 @@ _print_graph()
154 Eina_Hash *classes_hash = NULL; 148 Eina_Hash *classes_hash = NULL;
155 classes_hash = eina_hash_string_superfast_new(NULL); 149 classes_hash = eina_hash_string_superfast_new(NULL);
156 150
157 fprintf(_file, "digraph \"Best Eo Graph_Ever\" { \n\ 151 fprintf(_file, "digraph \"Best Eo Graph Ever\" { \n\
158 fontname = \"Bitstream Vera Sans\" \n\ 152 fontname = \"Bitstream Vera Sans\" \n\
159 fontsize = 8 \n\ 153 fontsize = 8 \n\
160 \n\ 154 \n\
@@ -345,8 +339,14 @@ _print_help(const char *program)
345 printf("Usage: %s [options] class_path/class_name...\n", program); 339 printf("Usage: %s [options] class_path/class_name...\n", program);
346 printf("Options:\n"); 340 printf("Options:\n");
347 printf(" --help/-h Display this information\n"); 341 printf(" --help/-h Display this information\n");
342 printf(" --noInheritance/-n By default we create the Inheritance tree\n"\
343 " , this flag disable it.\n");
344 printf(" --inheritors/-i Add the Inheritors tree (classes that inherit from this class)\n");
348 printf(" --output/-o <outFile> Set output filename to <outFile>\n"); 345 printf(" --output/-o <outFile> Set output filename to <outFile>\n");
349 printf(" --include/-I <includeDir> Add <includeDir> to the list of include dirs for scanning\n"); 346 printf(" --depth/-d Set the max depth ( up and down from the class)\n"\
347 "of the printed tree\n");
348 printf(" --include/-I <includeDir> Add <includeDir> to the list of include\n "\
349 "dirs for scanning. If no directory included we scan the system dir.\n");
350 printf(" --filters/-f <filter1,...> Set filters(the info of the class\n "\ 350 printf(" --filters/-f <filter1,...> Set filters(the info of the class\n "\
351 "that will be printed) to the list seperated by comma of:\n "); 351 "that will be printed) to the list seperated by comma of:\n ");
352 _filter *current_f = _filters; 352 _filter *current_f = _filters;
@@ -359,8 +359,8 @@ _print_help(const char *program)
359 } 359 }
360 printf("\n"); 360 printf("\n");
361 361
362 printf("\n For example:\n"); 362 printf("\nFor example:\n");
363 printf("eo_info_cmd --scope cl -I /home/avilog/git/efl1/efl/src/lib/ -I /home/avilog/git/efl1/elementary/src/lib/ --f events,file --o test.dot Elm.Layout Elm.Win\n"); 363 printf("eo_info_cmd -d 3 -o test.dot -f events,file elm_layout.eo Elm.Button\n");
364} 364}
365 365
366int main(int argc, char **argv) 366int main(int argc, char **argv)