summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2014-05-25 10:12:58 +0300
committerYakov Goldberg <yakov.g@samsung.com>2014-05-25 15:57:49 +0300
commita7bfc553d9777748372fbe2813575b322bcee0f3 (patch)
tree69dc44fa245bdc0077f2041cc2c8aacc4e6462cc
parent1b721005b3636f0674f9c0a4dca339a3467af6ea (diff)
comment out possibility of generatin JSON
-rw-r--r--src/bin/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 4e23f59..eebb16b 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -89,7 +89,9 @@ _help()
89 " -f FILENAME\n" 89 " -f FILENAME\n"
90 " -s - simulate\n" 90 " -s - simulate\n"
91 " -e - export format. (-e c)\n" 91 " -e - export format. (-e c)\n"
92#if 0
92 " --json - insert JSON descriptions into code\n" 93 " --json - insert JSON descriptions into code\n"
94#endif
93 " -p PATH in generate mode. Current dir by default\n" 95 " -p PATH in generate mode. Current dir by default\n"
94 " -o NAME in generate mode\n"); 96 " -o NAME in generate mode\n");
95} 97}
@@ -152,6 +154,8 @@ main(int argc, char **argv)
152 i++; 154 i++;
153 const char* format = argv[i]; 155 const char* format = argv[i];
154 export_mode = export_mode | GENERATE_CODE; 156 export_mode = export_mode | GENERATE_CODE;
157 /* FIXME: remove this when ready t ogenerate JSON separately. */
158 export_mode = export_mode | GENERATE_JSON;
155 if (!strcmp(format, "cpp")) 159 if (!strcmp(format, "cpp"))
156 { 160 {
157 export_format = GENERATION_CPP; 161 export_format = GENERATION_CPP;
@@ -178,6 +182,8 @@ main(int argc, char **argv)
178 } 182 }
179 else if (!strcmp(argv[i], "--json")) 183 else if (!strcmp(argv[i], "--json"))
180 { 184 {
185 _help();
186 return 1;
181 mode = "-e"; 187 mode = "-e";
182 export_mode = export_mode | GENERATE_JSON; 188 export_mode = export_mode | GENERATE_JSON;
183 } 189 }