aboutsummaryrefslogtreecommitdiff
path: root/0.8.0/src/qualudis/qualudis_command_line.hh
diff options
context:
space:
mode:
Diffstat (limited to '0.8.0/src/qualudis/qualudis_command_line.hh')
-rw-r--r--0.8.0/src/qualudis/qualudis_command_line.hh74
1 files changed, 74 insertions, 0 deletions
diff --git a/0.8.0/src/qualudis/qualudis_command_line.hh b/0.8.0/src/qualudis/qualudis_command_line.hh
new file mode 100644
index 0000000..ed2c1af
--- /dev/null
+++ b/0.8.0/src/qualudis/qualudis_command_line.hh
@@ -0,0 +1,74 @@
+/* vim: set sw=4 sts=4 et foldmethod=syntax : */
+
+#ifndef PALUDIS_GUARD_SRC_QUALUDIS_QUALUDIS_COMMAND_LINE_HH
+#define PALUDIS_GUARD_SRC_QUALUDIS_QUALUDIS_COMMAND_LINE_HH 1
+
+#include <paludis/args/args.hh>
+#include <paludis/qa/message.hh>
+#include <paludis/util/instantiation_policy.hh>
+
+class QualudisCommandLine :
+ public paludis::args::ArgsHandler,
+ public paludis::InstantiationPolicy<QualudisCommandLine, paludis::instantiation_method::SingletonAsNeededTag>
+{
+ friend class paludis::InstantiationPolicy<QualudisCommandLine, paludis::instantiation_method::SingletonAsNeededTag>;
+
+ private:
+ /// Constructor.
+ QualudisCommandLine();
+
+ /// Destructor.
+ ~QualudisCommandLine();
+
+ public:
+ ///\name Program information
+ ///\{
+
+ virtual std::string app_name() const;
+ virtual std::string app_synopsis() const;
+ virtual std::string app_description() const;
+
+ ///\}
+
+ ///\name Action arguments
+ ///\{
+
+ /// Action arguments.
+ paludis::args::ArgsGroup action_args;
+
+ /// --describe
+ paludis::args::SwitchArg a_describe;
+
+ /// --version
+ paludis::args::SwitchArg a_version;
+
+ /// --help
+ paludis::args::SwitchArg a_help;
+
+ ///\}
+
+ ///\name Check options
+ ///\{
+
+ /// Check options.
+ paludis::args::ArgsGroup check_options;
+
+ /// --qa-checks
+ paludis::args::StringSetArg a_qa_checks;
+
+ /// --verbose
+ paludis::args::SwitchArg a_verbose;
+
+ /// --log-level
+ paludis::args::EnumArg a_log_level;
+
+ /// --message-level
+ paludis::args::EnumArg a_message_level;
+
+ paludis::qa::QALevel message_level;
+
+ ///\}
+};
+
+
+#endif