10000 Uppercase · goodstudio/docopt.cpp@42ebcec · GitHub
[go: up one dir, main page]

Skip to content

Commit 42ebcec

Browse files
indianakernickjaredgrubb
authored andcommitted
Uppercase
1 parent f2618ab commit 42ebcec

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docopt.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ static std::pair<Required, std::vector<Option>> create_pattern_tree(std::string
609609
}
610610

611611
DOCOPT_INLINE
612-
docopt::options
612+
docopt::Options
613613
docopt::docopt_parse(std::string const& doc,
614614
std::vector<std::string> const& argv,
615615
bool help,
@@ -636,7 +636,7 @@ docopt::docopt_parse(std::string const& doc,
636636
std::vector<std::shared_ptr<LeafPattern>> collected;
637637
bool matched = pattern.fix().match(argv_patterns, collected);
638638
if (matched && argv_patterns.empty()) {
639-
docopt::options ret;
639+
docopt::Options ret;
640640

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

661661
DOCOPT_INLINE
662-
docopt::options
662+
docopt::Options
663663
docopt::docopt(std::string const& doc,
664664
std::vector<std::string> const& argv,
665665
bool help,

docopt.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ namespace docopt {
5656
struct DocoptExitVersion : std::runtime_error { DocoptExitVersion() : std::runtime_error("Docopt --version argument encountered") {} };
5757

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

6161
/// Parse user options from the given option string.
6262
///
@@ -71,7 +71,7 @@ namespace docopt {
7171
/// @throws DocoptExitHelp if 'help' is true and the user has passed the '--help' argument
7272
/// @throws DocoptExitVersion if 'version' is true and the user has passed the '--version' argument
7373
/// @throws DocoptArgumentError if the user's argv did not match the usage patterns
74-
options DOCOPT_API docopt_parse(std::string const& doc,
74+
Options DOCOPT_API docopt_parse(std::string const& doc,
7575
std::vector<std::string> const& argv,
7676
bool help = true,
7777
bool version = true,
@@ -84,7 +84,7 @@ namespace docopt {
8484
/// * DocoptExitHelp - print usage string and terminate (with exit code 0)
8585
/// * DocoptExitVersion - print version and terminate (with exit code 0)
8686
/// * DocoptArgumentError - print error and usage string and terminate (with exit code -1)
87-
options DOCOPT_API docopt(std::string const& doc,
87+
Options DOCOPT_API docopt(std::string const& doc,
8888
std::vector<std::string> const& argv,
8989
bool help = true,
9090
std::string const& version = {},

0 commit comments

Comments
 (0)
0