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

Side by Side Diff: shell/src/Command.cpp

Issue 10016005: Add API calls and stubs for filter matching and subscription management (Closed)
Patch Set: Created April 3, 2013, 12:42 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld