feat(generate): add a no-op --no-bindings flag
This commit is contained in:
parent
31f24395b4
commit
d0974e876e
1 changed files with 5 additions and 0 deletions
|
|
@ -66,6 +66,8 @@ struct Generate {
|
|||
pub grammar_path: Option<String>,
|
||||
#[arg(long, short, help = "Show debug log during generation")]
|
||||
pub log: bool,
|
||||
#[arg(long, help = "Deprecated (no-op)")]
|
||||
pub no_bindings: bool,
|
||||
#[arg(
|
||||
long = "abi",
|
||||
value_name = "VERSION",
|
||||
|
|
@ -448,6 +450,9 @@ impl Init {
|
|||
|
||||
impl Generate {
|
||||
fn run(self, mut loader: loader::Loader, current_dir: &Path) -> Result<()> {
|
||||
if self.no_bindings {
|
||||
eprint!("The --no-bindings flag is now a no-op and will be removed in v0.25.0");
|
||||
}
|
||||
if self.log {
|
||||
logger::init();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue