ArKanjo 0.5.1
A tool for find code duplicated functions in codebases
preprocessor_clean.hpp
Go to the documentation of this file.
1
9#pragma once
10
12
13class PreprocessorClean : public CommandBase<PreprocessorClean> {
14
15 bool clean_all = false;
16
17public:
18 static constexpr CliOption options_[] = {
19 {"all", 0, NoArgument, "Remove all cached preprocess profiles."},
21 };
22
23 PreprocessorClean() = default;
24
25 COMMAND_DESCRIPTION("Removes the application cache directory.")
26
27 bool validate(const ParsedOptions& options) override;
28 bool run(const ParsedOptions& options) override;
29};
const CliOption * options() const final
PreprocessorClean()=default
bool run(const ParsedOptions &options) override
Executes the main logic of the command.
bool validate(const ParsedOptions &options) override
Validate the arguments already analyzed.
static constexpr CliOption options_[]
#define COMMAND_DESCRIPTION(str)
Definition: command_base.hpp:9
#define OPTION_END
This marks the end of a long array of options.
@ NoArgument