summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 1ccd694ee..0817c0984 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -256,6 +256,19 @@ fn unwrap_or_exit<T>(result: Result<T, AnyError>) -> T {
}
}
+pub(crate) fn unstable_exit_cb(_feature: &str, api_name: &str) {
+ // TODO(bartlomieju): change to "The `--unstable-{feature}` flag must be provided.".
+ eprintln!("Unstable API '{api_name}'. The --unstable flag must be provided.");
+ std::process::exit(70);
+}
+
+#[allow(dead_code)]
+pub(crate) fn unstable_warn_cb(feature: &str) {
+ eprintln!(
+ "The `--unstable` flag is deprecated, use --unstable-{feature} instead."
+ );
+}
+
pub fn main() {
setup_panic_hook();