Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Check for invalid arguments passed to perf.php #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

florinpapa
Copy link

@florinpapa florinpapa commented Feb 12, 2018

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.

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 change 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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants