File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 22
22
s += #MODULE; \
23
23
void tst_##MODULE (); \
24
24
if (do_display_usage) \
25
- std::cout << #MODULE << " \n " ; \
25
+ std::cout << " " << #MODULE << " \n " ; \
26
26
for (int i = 0 ; i < argc; i++) \
27
27
if (test_all || strcmp (argv[i], #MODULE) == 0 ) { \
28
28
enable_trace (#MODULE); \
38
38
s += #MODULE; \
39
39
void tst_##MODULE (char ** argv, int argc, int & i); \
40
40
if (do_display_usage) \
41
- std::cout << #MODULE << " \n " ; \
41
+ std::cout << " " << #MODULE << " (...) \n " ; \
42
42
for (int i = 0 ; i < argc; i++) \
43
43
if (strcmp (argv[i], #MODULE) == 0 ) { \
44
44
enable_trace (#MODULE); \
@@ -72,10 +72,15 @@ void display_usage() {
72
72
#ifdef Z3DEBUG
73
73
std::cout << " /dbg:tag enable assertions tagged with <tag>.\n " ;
74
74
#endif
75
+ std::cout << " \n Module names:\n " ;
75
76
}
76
77
77
78
void parse_cmd_line_args (int argc, char ** argv, bool & do_display_usage, bool & test_all) {
78
79
int i = 1 ;
80
+ if (argc == 1 ) {
81
+ display_usage ();
82
+ do_display_usage = true ;
83
+ }
79
84
while (i < argc) {
80
85
char * arg = argv[i];
81
86
char * eq_pos = nullptr ;
You can’t perform that action at this time.
0 commit comments