facebookarchive / oss-performance

Scripts for benchmarking various PHP implementations when running open source software.
Other
131 stars 45 forks source link

Check for invalid arguments passed to perf.php #91

Open florinpapa opened 6 years ago

florinpapa commented 6 years ago

oss-performance does not give any warnings when passing an incorrect argument. When a wrong argument is found, the "getopt" Hack function that parses arguments stops silently and the rest of the arguments are simply discarded without notice.

This PR fixes this verbosity issue by going through all the parameters passed to perf.php and checking if they are valid. If they are not, a warning is displayed saying which parameter is wrong and the "help" message is printed.