Skip to content

Commit

Permalink
Uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
indianakernick authored and jaredgrubb committed May 11, 2020
1 parent f2618ab commit 42ebcec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docopt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ static std::pair<Required, std::vector<Option>> create_pattern_tree(std::string
}

DOCOPT_INLINE
docopt::options
docopt::Options
docopt::docopt_parse(std::string const& doc,
std::vector<std::string> const& argv,
bool help,
Expand All @@ -636,7 +636,7 @@ docopt::docopt_parse(std::string const& doc,
std::vector<std::shared_ptr<LeafPattern>> collected;
bool matched = pattern.fix().match(argv_patterns, collected);
if (matched && argv_patterns.empty()) {
docopt::options ret;
docopt::Options ret;

// (a.name, a.value) for a in (pattern.flat() + collected)
for (auto* p : pattern.leaves()) {
Expand All @@ -659,7 +659,7 @@ docopt::docopt_parse(std::string const& doc,
}

DOCOPT_INLINE
docopt::options
docopt::Options
docopt::docopt(std::string const& doc,
std::vector<std::string> const& argv,
bool help,
Expand Down
6 changes: 3 additions & 3 deletions docopt.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ namespace docopt {
struct DocoptExitVersion : std::runtime_error { DocoptExitVersion() : std::runtime_error("Docopt --version argument encountered") {} };

/// A map of options set by the user
using options = std::map<std::string, value>;
using Options = std::map<std::string, value>;

/// Parse user options from the given option string.
///
Expand All @@ -71,7 +71,7 @@ namespace docopt {
/// @throws DocoptExitHelp if 'help' is true and the user has passed the '--help' argument
/// @throws DocoptExitVersion if 'version' is true and the user has passed the '--version' argument
/// @throws DocoptArgumentError if the user's argv did not match the usage patterns
options DOCOPT_API docopt_parse(std::string const& doc,
Options DOCOPT_API docopt_parse(std::string const& doc,
std::vector<std::string> const& argv,
bool help = true,
bool version = true,
Expand All @@ -84,7 +84,7 @@ namespace docopt {
/// * DocoptExitHelp - print usage string and terminate (with exit code 0)
/// * DocoptExitVersion - print version and terminate (with exit code 0)
/// * DocoptArgumentError - print error and usage string and terminate (with exit code -1)
options DOCOPT_API docopt(std::string const& doc,
Options DOCOPT_API docopt(std::string const& doc,
std::vector<std::string> const& argv,
bool help = true,
std::string const& version = {},
Expand Down

0 comments on commit 42ebcec

Please sign in to comment.