Reformat
This commit is contained in:
parent
b9d951ec9a
commit
c2d0033f78
4 changed files with 87 additions and 12 deletions
|
@ -1,5 +1,7 @@
|
|||
#include <clippy/clippy.hpp>
|
||||
|
||||
#include <utils/parametres.hpp>
|
||||
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
|
@ -8,7 +10,9 @@ void Clippy::Run(const std::vector<std::string>& args) {
|
|||
}
|
||||
|
||||
bool Clippy::TryExecuteClippyCommand(const std::vector<std::string>& args) {
|
||||
if (args.size() >= 2 && (args[1] == "help" || args[1] == "hello")) {
|
||||
using namespace utils::parametres;
|
||||
if (CheckPatternParametres(args, Parameter::Skip, "help",
|
||||
Parameter::Anything)) {
|
||||
std::cout << "Hello I'm clippy" << std::endl;
|
||||
std::cout << "Parametres: { ";
|
||||
for (size_t i = 0; i < args.size(); ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue