From 89ac2d0cf05de5c560e7142b32ed07b3f1e72306 Mon Sep 17 00:00:00 2001 From: Sean Wei Date: Sat, 9 Dec 2023 13:23:49 +0800 Subject: [PATCH] Depreacte --output-format, only allow --output option --- src/options.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/options.c b/src/options.c index 10e8b265a7..5e175dc0b0 100644 --- a/src/options.c +++ b/src/options.c @@ -75,7 +75,7 @@ struct option long_opts[] = { {"log-size" , required_argument , 0 , 'S' } , {"no-query-string" , no_argument , 0 , 'q' } , {"no-term-resolver" , no_argument , 0 , 'r' } , - {"output-format" , required_argument , 0 , 'o' } , + {"output" , required_argument , 0 , 'o' } , {"storage" , no_argument , 0 , 's' } , {"version" , no_argument , 0 , 'V' } , {"with-mouse" , no_argument , 0 , 'm' } , @@ -132,7 +132,7 @@ struct option long_opts[] = { {"no-tab-scroll" , no_argument , 0 , 0 } , {"num-tests" , required_argument , 0 , 0 } , {"origin" , required_argument , 0 , 0 } , - {"output" , required_argument , 0 , 0 } , + {"output-format" , required_argument , 0 , 0 } , {"persist" , no_argument , 0 , 0 } , {"pid-file" , required_argument , 0 , 0 } , {"port" , required_argument , 0 , 0 } , @@ -552,8 +552,8 @@ parse_long_opt (const char *name, const char *oarg) { } /* output file */ - if (!strcmp ("output", name)) - set_array_opt (oarg, conf.output_formats, &conf.output_format_idx, MAX_OUTFORMATS); + if (!strcmp ("output-format", name)) + FATAL ("The option --output-format is deprecated, please use --output instead."); /* PARSE OPTIONS * ========================= */