From d0974e876e882c797fd97bf24afdbc02db9ce65b Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Sat, 28 Sep 2024 13:30:14 +0300 Subject: [PATCH] feat(generate): add a no-op `--no-bindings` flag --- cli/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cli/src/main.rs b/cli/src/main.rs index d60e6dcd..d6c9a429 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -66,6 +66,8 @@ struct Generate { pub grammar_path: Option, #[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(); }