commit cbc21c2e814ee57cee12118363cfcf3433afa2a9
Author: Ján Kupec
Date: Mon Jan 19 10:17:59 2009 +0100
Check for arguments when using aggregate options.
---
src/Zypper.cc | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/Zypper.cc b/src/Zypper.cc
index 8d2afe5..4ad8d83 100644
--- a/src/Zypper.cc
+++ b/src/Zypper.cc
@@ -2859,6 +2859,15 @@ void Zypper::doCommand()
return;
}
+ // too many arguments
+ if (_arguments.size() && non_alias)
+ {
+ report_too_many_arguments(_command_help);
+ setExitCode(ZYPPER_EXIT_ERR_INVALID_ARGS);
+ return;
+ }
+
+
initRepoManager();
if (non_alias)
{
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org