CommandLine Process ignoreCommand accepts only int for second value? #869
Replies: 2 comments 2 replies
-
The integer being parsed here is the number of arguments to ignore following the command, not the name of the command itself, so you'd do something like See docs here: https://sv-lang.com/command-line-ref.html#vendor-cmds |
Beta Was this translation helpful? Give feedback.
-
That was my point.. IT was kind of hard to do each one. I wound up changing the Driver.cpp in a fork. Inside the Driver.cpp I did this so that I could keep the command line simple. cmdLine.addIgnoreCommand("-sverilog,0"); ... I got this somewhat working in the fork and that's why I thought I would ask if there was a plan to leave this area alone. |
Beta Was this translation helpful? Give feedback.
-
Mike:
In your code in CommandLine.CPP we have:
Was trying to add some vendor specific switches to this list and noticed that it only accepts integers.
Many vendors have the +warn=<some_string> or -warn=<some_string> or +/- error=<some_string>
Can we get an API that allows us to add a few vendor switches which have second argument as a string that updates your data structures?
I can possibly do this by extending the CommandLineClass and adding a method,
but have a feeling a couple of other methods need to change in this class also, but thought I would mention this to you first and ask an opinion..
Beta Was this translation helpful? Give feedback.
All reactions