- report_dummy_option() added
authorJan Kupec <jkupec@suse.cz>
Sun, 13 Apr 2008 12:16:49 +0000 (12:16 +0000)
committerJan Kupec <jkupec@suse.cz>
Sun, 13 Apr 2008 12:16:49 +0000 (12:16 +0000)
src/zypper-utils.cc
src/zypper-utils.h

index 8783903..c14532f 100644 (file)
@@ -70,6 +70,14 @@ void report_too_many_arguments(const string & specific_help)
 
 // ----------------------------------------------------------------------------
 
+void report_dummy_option(Out & out, const string & longoption_str)
+{
+  out.warning(str::form(
+    _("The '--%s' option has currently no effect."), longoption_str.c_str()));
+}
+
+// ----------------------------------------------------------------------------
+
 bool is_changeable_media(const zypp::Url & url)
 {
   MIL << "Checking if this is a changeable medium" << endl;
index 4868099..afb0fdf 100644 (file)
@@ -14,16 +14,15 @@ typedef std::set<zypp::ResKind> ResKindSet;
 
 std::string readline_getline();
 
-/**
- * Write a suggestion to report a bug to the specified stream.
- */
+/** Write a suggestion to report a bug to the output. */
 void report_a_bug (Out & out);
 
-/**
- * 
- */
+/** Say that too many arguments have been specified */
 void report_too_many_arguments(const std::string & specific_help);
 
+/** Say the specified option has no effect */
+void report_dummy_option(Out & out, const std::string & longoption_str);
+
 bool is_changeable_media(const zypp::Url & url);
 
 std::string kind_to_string_localized(