| Index: shell/src/Main.cpp |
| =================================================================== |
| --- a/shell/src/Main.cpp |
| +++ b/shell/src/Main.cpp |
| @@ -17,18 +17,19 @@ |
| #include <AdblockPlus.h> |
| #include <iostream> |
| #include <sstream> |
| #include "GcCommand.h" |
| #include "HelpCommand.h" |
| #include "FiltersCommand.h" |
| +#include "MatchesCommand.h" |
| +#include "PrefsCommand.h" |
| #include "SubscriptionsCommand.h" |
| -#include "MatchesCommand.h" |
| namespace |
| { |
| void Add(CommandMap& commands, Command* command) |
| { |
| commands[command->name] = command; |
| } |
| @@ -63,16 +64,17 @@ int main() |
| AdblockPlus::FilterEngine filterEngine(jsEngine); |
| CommandMap commands; |
| Add(commands, new GcCommand(jsEngine)); |
| Add(commands, new HelpCommand(commands)); |
| Add(commands, new FiltersCommand(filterEngine)); |
| Add(commands, new SubscriptionsCommand(filterEngine)); |
| Add(commands, new MatchesCommand(filterEngine)); |
| + Add(commands, new PrefsCommand(filterEngine)); |
| std::string commandLine; |
| while (ReadCommandLine(commandLine)) |
| { |
| std::string commandName; |
| std::string arguments; |
| ParseCommandLine(commandLine, commandName, arguments); |
| const CommandMap::const_iterator it = commands.find(commandName); |