commit | 9631934ff6d6b852fb5c4a460ec51733f22c923e | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Tue May 27 13:45:57 2014 -0700 |
committer | Kir Kolyshkin <kir@openvz.org> | Tue May 27 13:50:11 2014 -0700 |
tree | d229881431f0900bffec15f838f3e4642aca06a8 | |
parent | 071aa615fd4dc124300d292bec9da114eb3e0d22 [diff] |
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>