[patch] pg_test_timing does not prompt illegal option - Mailing list pgsql-hackers

From Zhang, Jie
Subject [patch] pg_test_timing does not prompt illegal option
Date
Msg-id 1396E95157071C4EBBA51892C5368521017F2F2C72@G08CNEXMBPEKD02.g08.fujitsu.local
Whole thread Raw
Responses Re: [patch] pg_test_timing does not prompt illegal option
List pgsql-hackers
Hi all,

pg_test_timing accepts the following command-line options:
-d duration
--duration=duration

    Specifies the test duration, in seconds. Longer durations give slightly better accuracy, and are more likely to
discoverproblems with the system clock moving backwards. The default test duration is 3 seconds.
 
-V
--version

    Print the pg_test_timing version and exit.
-?
--help

    Show help about pg_test_timing command line arguments, and exit.

[https://www.postgresql.org/docs/11/pgtesttiming.html]

However, when I use the following command,  no error prompt. the command can run.
pg_test_timing --

I think "--" is a illegal option, errors should be prompted.

Here is a patch for prompt illegal option.

Best Regards!




Attachment

pgsql-hackers by date:

Previous
From: Paul Guo
Date:
Subject: standby recovery fails (tablespace related) (tentative patch and discussion)
Next
From: Amit Langote
Date:
Subject: Re: hyrax vs. RelationBuildPartitionDesc