aboutsummaryrefslogtreecommitdiff
path: root/bdep/config-options.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bdep/config-options.hxx')
-rw-r--r--bdep/config-options.hxx293
1 files changed, 293 insertions, 0 deletions
diff --git a/bdep/config-options.hxx b/bdep/config-options.hxx
new file mode 100644
index 0000000..5613dbf
--- /dev/null
+++ b/bdep/config-options.hxx
@@ -0,0 +1,293 @@
+// -*- C++ -*-
+//
+// This file was generated by CLI, a command line interface
+// compiler for C++.
+//
+
+#ifndef BDEP_CONFIG_OPTIONS_HXX
+#define BDEP_CONFIG_OPTIONS_HXX
+
+// Begin prologue.
+//
+//
+// End prologue.
+
+#include <bdep/project-options.hxx>
+
+namespace bdep
+{
+ class cmd_config_subcommands
+ {
+ public:
+ cmd_config_subcommands ();
+
+ // Return true if anything has been parsed.
+ //
+ bool
+ parse (int& argc,
+ char** argv,
+ bool erase = false,
+ ::bdep::cli::unknown_mode option = ::bdep::cli::unknown_mode::fail,
+ ::bdep::cli::unknown_mode argument = ::bdep::cli::unknown_mode::stop);
+
+ bool
+ parse (int start,
+ int& argc,
+ char** argv,
+ bool erase = false,
+ ::bdep::cli::unknown_mode option = ::bdep::cli::unknown_mode::fail,
+ ::bdep::cli::unknown_mode argument = ::bdep::cli::unknown_mode::stop);
+
+ bool
+ parse (int& argc,
+ char** argv,
+ int& end,
+ bool erase = false,
+ ::bdep::cli::unknown_mode option = ::bdep::cli::unknown_mode::fail,
+ ::bdep::cli::unknown_mode argument = ::bdep::cli::unknown_mode::stop);
+
+ bool
+ parse (int start,
+ int& argc,
+ char** argv,
+ int& end,
+ bool erase = false,
+ ::bdep::cli::unknown_mode option = ::bdep::cli::unknown_mode::fail,
+ ::bdep::cli::unknown_mode argument = ::bdep::cli::unknown_mode::stop);
+
+ bool
+ parse (::bdep::cli::scanner&,
+ ::bdep::cli::unknown_mode option = ::bdep::cli::unknown_mode::fail,
+ ::bdep::cli::unknown_mode argument = ::bdep::cli::unknown_mode::stop);
+
+ // Merge options from the specified instance appending/overriding
+ // them as if they appeared after options in this instance.
+ //
+ void
+ merge (const cmd_config_subcommands&);
+
+ // Option accessors and modifiers.
+ //
+ const bool&
+ add () const;
+
+ bool&
+ add ();
+
+ void
+ add (const bool&);
+
+ const bool&
+ create () const;
+
+ bool&
+ create ();
+
+ void
+ create (const bool&);
+
+ const bool&
+ link () const;
+
+ bool&
+ link ();
+
+ void
+ link (const bool&);
+
+ const bool&
+ unlink () const;
+
+ bool&
+ unlink ();
+
+ void
+ unlink (const bool&);
+
+ const bool&
+ list () const;
+
+ bool&
+ list ();
+
+ void
+ list (const bool&);
+
+ const bool&
+ move () const;
+
+ bool&
+ move ();
+
+ void
+ move (const bool&);
+
+ const bool&
+ rename () const;
+
+ bool&
+ rename ();
+
+ void
+ rename (const bool&);
+
+ const bool&
+ remove () const;
+
+ bool&
+ remove ();
+
+ void
+ remove (const bool&);
+
+ const bool&
+ set () const;
+
+ bool&
+ set ();
+
+ void
+ set (const bool&);
+
+ // Print usage information.
+ //
+ static ::bdep::cli::usage_para
+ print_usage (::std::ostream&,
+ ::bdep::cli::usage_para = ::bdep::cli::usage_para::none);
+
+ // Option description.
+ //
+ static const ::bdep::cli::options&
+ description ();
+
+ // Implementation details.
+ //
+ protected:
+ friend struct _cli_cmd_config_subcommands_desc_type;
+
+ static void
+ fill (::bdep::cli::options&);
+
+ bool
+ _parse (const char*, ::bdep::cli::scanner&);
+
+ private:
+ bool
+ _parse (::bdep::cli::scanner&,
+ ::bdep::cli::unknown_mode option,
+ ::bdep::cli::unknown_mode argument);
+
+ public:
+ bool add_;
+ bool create_;
+ bool link_;
+ bool unlink_;
+ bool list_;
+ bool move_;
+ bool rename_;
+ bool remove_;
+ bool set_;
+ };
+
+ class cmd_config_options: public ::bdep::configuration_add_options,
+ public ::bdep::project_options
+ {
+ public:
+ cmd_config_options ();
+
+ // Return true if anything has been parsed.
+ //
+ bool
+ parse (int& argc,
+ char** argv,
+ bool erase = false,
+ ::bdep::cli::unknown_mode option = ::bdep::cli::unknown_mode::fail,
+ ::bdep::cli::unknown_mode argument = ::bdep::cli::unknown_mode::stop);
+
+ bool
+ parse (int start,
+ int& argc,
+ char** argv,
+ bool erase = false,
+ ::bdep::cli::unknown_mode option = ::bdep::cli::unknown_mode::fail,
+ ::bdep::cli::unknown_mode argument = ::bdep::cli::unknown_mode::stop);
+
+ bool
+ parse (int& argc,
+ char** argv,
+ int& end,
+ bool erase = false,
+ ::bdep::cli::unknown_mode option = ::bdep::cli::unknown_mode::fail,
+ ::bdep::cli::unknown_mode argument = ::bdep::cli::unknown_mode::stop);
+
+ bool
+ parse (int start,
+ int& argc,
+ char** argv,
+ int& end,
+ bool erase = false,
+ ::bdep::cli::unknown_mode option = ::bdep::cli::unknown_mode::fail,
+ ::bdep::cli::unknown_mode argument = ::bdep::cli::unknown_mode::stop);
+
+ bool
+ parse (::bdep::cli::scanner&,
+ ::bdep::cli::unknown_mode option = ::bdep::cli::unknown_mode::fail,
+ ::bdep::cli::unknown_mode argument = ::bdep::cli::unknown_mode::stop);
+
+ // Merge options from the specified instance appending/overriding
+ // them as if they appeared after options in this instance.
+ //
+ void
+ merge (const cmd_config_options&);
+
+ // Option accessors and modifiers.
+ //
+ // Print usage information.
+ //
+ static ::bdep::cli::usage_para
+ print_usage (::std::ostream&,
+ ::bdep::cli::usage_para = ::bdep::cli::usage_para::none);
+
+ // Option description.
+ //
+ static const ::bdep::cli::options&
+ description ();
+
+ // Implementation details.
+ //
+ protected:
+ friend struct _cli_cmd_config_options_desc_type;
+
+ static void
+ fill (::bdep::cli::options&);
+
+ bool
+ _parse (const char*, ::bdep::cli::scanner&);
+
+ private:
+ bool
+ _parse (::bdep::cli::scanner&,
+ ::bdep::cli::unknown_mode option,
+ ::bdep::cli::unknown_mode argument);
+
+ public:
+ };
+}
+
+// Print page usage information.
+//
+namespace bdep
+{
+ ::bdep::cli::usage_para
+ print_bdep_config_usage (::std::ostream&,
+ ::bdep::cli::usage_para = ::bdep::cli::usage_para::none);
+}
+
+#include <bdep/config-options.ixx>
+
+// Begin epilogue.
+//
+//
+// End epilogue.
+
+#endif // BDEP_CONFIG_OPTIONS_HXX