mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Currently zpcictl silently accepts incorrect command line options while it should be displaying an error message for invalid ones. There is a check for the case when no arguments are supplied, but invalid arguments or only specifying a device without an action does not display an error nor give a failure exit code. Fix this by changing parse_cmdline() to return a boolean indicating if any arguments were supplied while exiting with an error and message when invalid options are detected. Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>