parse*opt(): add/improve extra args check

In parse_opt(), check for extra arguments was printing to stdout,
and the message was somewhat cryptic ("Non-option ARGV arguments:").
Fix both issues, and move the code to a macro.

Also, use this macro from parse_chkpnt_opt(), parse_restore_opt()
and parse_startstop_opt() so that extra arguments will cause
an error now.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed