summaryrefslogtreecommitdiff
path: root/tools/d2c/d2c_gram.y
diff options
context:
space:
mode:
Diffstat (limited to 'tools/d2c/d2c_gram.y')
-rw-r--r--tools/d2c/d2c_gram.y7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/d2c/d2c_gram.y b/tools/d2c/d2c_gram.y
index 5ae93c8..b1519a1 100644
--- a/tools/d2c/d2c_gram.y
+++ b/tools/d2c/d2c_gram.y
@@ -354,6 +354,7 @@ int main(int argc, char **argv)
static struct option long_options[] = {
{ "help", no_argument, NULL, 'h' },
+ { "input", required_argument, NULL, 'i' },
{ "dir", required_argument, NULL, 'd' },
{ "arch", required_argument, NULL, 'a' },
{ "header", required_argument, NULL, 'H' },
@@ -374,7 +375,7 @@ int main(int argc, char **argv)
while (!has_error)
{
- ret = getopt_long(argc, argv, "hd:a:H:e:M:", long_options, &index);
+ ret = getopt_long(argc, argv, "hi:d:a:H:e:M:", long_options, &index);
if (ret == -1) break;
switch (ret)
@@ -383,6 +384,10 @@ int main(int argc, char **argv)
need_help = true;
break;
+ case 'i':
+ set_coder_input_file(coder, optarg);
+ break;
+
case 'd':
set_coder_output_directory(coder, optarg);
break;