diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-04-23 14:47:04 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-04-23 14:47:04 +0300 |
commit | 9bf09e30c79877714e7f73313296370e26afefb6 (patch) | |
tree | 44950334b7b6acc2b1559cae18d17ec089c50671 /bpkg/cfg-link-options.hxx | |
parent | 40bb034f57cf37c1cbdcef337733507c230c6004 (diff) |
Make changes required for CI
Diffstat (limited to 'bpkg/cfg-link-options.hxx')
-rw-r--r-- | bpkg/cfg-link-options.hxx | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/bpkg/cfg-link-options.hxx b/bpkg/cfg-link-options.hxx new file mode 100644 index 0000000..9c506ce --- /dev/null +++ b/bpkg/cfg-link-options.hxx @@ -0,0 +1,121 @@ +// -*- C++ -*- +// +// This file was generated by CLI, a command line interface +// compiler for C++. +// + +#ifndef BPKG_CFG_LINK_OPTIONS_HXX +#define BPKG_CFG_LINK_OPTIONS_HXX + +// Begin prologue. +// +// +// End prologue. + +#include <bpkg/configuration-options.hxx> + +namespace bpkg +{ + class cfg_link_options: public ::bpkg::configuration_options + { + public: + cfg_link_options (); + + // Return true if anything has been parsed. + // + bool + parse (int& argc, + char** argv, + bool erase = false, + ::bpkg::cli::unknown_mode option = ::bpkg::cli::unknown_mode::fail, + ::bpkg::cli::unknown_mode argument = ::bpkg::cli::unknown_mode::stop); + + bool + parse (int start, + int& argc, + char** argv, + bool erase = false, + ::bpkg::cli::unknown_mode option = ::bpkg::cli::unknown_mode::fail, + ::bpkg::cli::unknown_mode argument = ::bpkg::cli::unknown_mode::stop); + + bool + parse (int& argc, + char** argv, + int& end, + bool erase = false, + ::bpkg::cli::unknown_mode option = ::bpkg::cli::unknown_mode::fail, + ::bpkg::cli::unknown_mode argument = ::bpkg::cli::unknown_mode::stop); + + bool + parse (int start, + int& argc, + char** argv, + int& end, + bool erase = false, + ::bpkg::cli::unknown_mode option = ::bpkg::cli::unknown_mode::fail, + ::bpkg::cli::unknown_mode argument = ::bpkg::cli::unknown_mode::stop); + + bool + parse (::bpkg::cli::scanner&, + ::bpkg::cli::unknown_mode option = ::bpkg::cli::unknown_mode::fail, + ::bpkg::cli::unknown_mode argument = ::bpkg::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 cfg_link_options&); + + // Option accessors. + // + const string& + name () const; + + bool + name_specified () const; + + const bool& + relative () const; + + // Print usage information. + // + static ::bpkg::cli::usage_para + print_usage (::std::ostream&, + ::bpkg::cli::usage_para = ::bpkg::cli::usage_para::none); + + // Implementation details. + // + protected: + bool + _parse (const char*, ::bpkg::cli::scanner&); + + private: + bool + _parse (::bpkg::cli::scanner&, + ::bpkg::cli::unknown_mode option, + ::bpkg::cli::unknown_mode argument); + + public: + string name_; + bool name_specified_; + bool relative_; + }; +} + +// Print page usage information. +// +namespace bpkg +{ + ::bpkg::cli::usage_para + print_bpkg_cfg_link_usage (::std::ostream&, + ::bpkg::cli::usage_para = ::bpkg::cli::usage_para::none); +} + +#include <bpkg/cfg-link-options.ixx> + +// Begin epilogue. +// +// +// End epilogue. + +#endif // BPKG_CFG_LINK_OPTIONS_HXX |