diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-05-24 10:26:21 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-05-24 10:26:21 +0300 |
commit | 7f48aa4fa698635f9e17e5d82dcbba5b621f4f60 (patch) | |
tree | 37d6ee4dd1bcd52ae0ca6460933b28b1fad103ac /bpkg/pkg-verify-options.hxx | |
parent | 85511898b89cb31358c18315db456f98de1f34e0 (diff) |
Make changes required for CI
Diffstat (limited to 'bpkg/pkg-verify-options.hxx')
-rw-r--r-- | bpkg/pkg-verify-options.hxx | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/bpkg/pkg-verify-options.hxx b/bpkg/pkg-verify-options.hxx new file mode 100644 index 0000000..d4b1415 --- /dev/null +++ b/bpkg/pkg-verify-options.hxx @@ -0,0 +1,125 @@ +// -*- C++ -*- +// +// This file was generated by CLI, a command line interface +// compiler for C++. +// + +#ifndef BPKG_PKG_VERIFY_OPTIONS_HXX +#define BPKG_PKG_VERIFY_OPTIONS_HXX + +// Begin prologue. +// +// +// End prologue. + +#include <bpkg/common-options.hxx> + +namespace bpkg +{ + class pkg_verify_options: public ::bpkg::common_options + { + public: + pkg_verify_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 pkg_verify_options&); + + // Option accessors. + // + const bool& + silent () const; + + const bool& + deep () const; + + const bool& + ignore_unknown () const; + + const bool& + manifest () 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: + bool silent_; + bool deep_; + bool ignore_unknown_; + bool manifest_; + }; +} + +// Print page usage information. +// +namespace bpkg +{ + ::bpkg::cli::usage_para + print_bpkg_pkg_verify_usage (::std::ostream&, + ::bpkg::cli::usage_para = ::bpkg::cli::usage_para::none); +} + +#include <bpkg/pkg-verify-options.ixx> + +// Begin epilogue. +// +// +// End epilogue. + +#endif // BPKG_PKG_VERIFY_OPTIONS_HXX |