From 821f61e2677f1e0a3e195745f68eb3297b153518 Mon Sep 17 00:00:00 2001 From: Jan Kupec Date: Sun, 13 Apr 2008 12:16:49 +0000 Subject: [PATCH] - report_dummy_option() added --- src/zypper-utils.cc | 8 ++++++++ src/zypper-utils.h | 11 +++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/zypper-utils.cc b/src/zypper-utils.cc index 8783903..c14532f 100644 --- a/src/zypper-utils.cc +++ b/src/zypper-utils.cc @@ -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; diff --git a/src/zypper-utils.h b/src/zypper-utils.h index 4868099..afb0fdf 100644 --- a/src/zypper-utils.h +++ b/src/zypper-utils.h @@ -14,16 +14,15 @@ typedef std::set 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( -- 2.7.4