Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: shell/src/Command.cpp

Issue 9987009: Interface for the libadblockplus API (Closed)
Patch Set: Use new API in the shell Created March 27, 2013, 4:58 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « shell/src/Command.h ('k') | shell/src/Main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/src/Command.cpp
===================================================================
--- a/shell/src/Command.cpp
+++ b/shell/src/Command.cpp
@@ -10,6 +10,11 @@
{
}
+void Command::ShowUsage() const
+{
+ std::cout << "Usage: " << GetUsage() << std::endl;
+}
+
NoSuchCommandError::NoSuchCommandError(const std::string& commandName)
: std::runtime_error("No such command: " + commandName)
{
« no previous file with comments | « shell/src/Command.h ('k') | shell/src/Main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld