// file : bpkg/types-parsers.hxx -*- C++ -*- // copyright : Copyright (c) 2014-2019 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file // CLI parsers, included into the generated source files. // #ifndef BPKG_TYPES_PARSERS_HXX #define BPKG_TYPES_PARSERS_HXX #include #include #include // bpkg::cli namespace #include namespace bpkg { namespace cli { template <> struct parser { static void parse (path&, bool&, scanner&); static void merge (path& b, const path& a) {b = a;} }; template <> struct parser { static void parse (dir_path&, bool&, scanner&); static void merge (dir_path& b, const dir_path& a) {b = a;} }; template <> struct parser { static void parse (auth&, bool&, scanner&); static void merge (auth& b, const auth& a) {b = a;} }; template <> struct parser { static void parse (repository_type&, bool&, scanner&); static void merge (repository_type& b, const repository_type& a) {b = a;} }; template struct parser> { static void parse (qualified_option&, bool&, scanner&); static void merge (qualified_option&, const qualified_option&); }; } } #include #endif // BPKG_TYPES_PARSERS_HXX