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

Delta Between Two Patch Sets: shell/src/Command.cpp

Issue 9987009: Interface for the libadblockplus API (Closed)
Left Patch Set: Some changes to the API, implemented stubs Created March 26, 2013, 3:13 p.m.
Right Patch Set: Reduce redundant redundancy Created March 27, 2013, 6:45 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
LEFTRIGHT
(no file at all)
1 #include <iostream> 1 #include <iostream>
2 2
3 #include "Command.h" 3 #include "Command.h"
4 4
5 Command::Command(const std::string& name) : name(name) 5 Command::Command(const std::string& name) : name(name)
6 { 6 {
7 } 7 }
8 8
9 Command::~Command() 9 Command::~Command()
10 { 10 {
11 } 11 }
12 12
13 void Command::ShowUsage() const
14 {
15 std::cout << "Usage: " << GetUsage() << std::endl;
16 }
17
13 NoSuchCommandError::NoSuchCommandError(const std::string& commandName) 18 NoSuchCommandError::NoSuchCommandError(const std::string& commandName)
14 : std::runtime_error("No such command: " + commandName) 19 : std::runtime_error("No such command: " + commandName)
15 { 20 {
16 } 21 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld