We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e340f29 commit 8e073beCopy full SHA for 8e073be
standalone/source/main.cpp
@@ -22,11 +22,16 @@ int main(int argc, char** argv) {
22
23
auto result = options.parse(argc, argv);
24
25
- if (result["help"].as<bool>() || patterns.empty()) {
+ if (result["help"].as<bool>()) {
26
std::cout << options.help() << std::endl;
27
return 0;
28
} else if (result["version"].as<bool>()) {
29
- std::cout << "Glob, version " << GLOB_VERSION << std::endl;
+ std::cout << "glob, version " << GLOB_VERSION << std::endl;
30
+ return 0;
31
+ }
32
+
33
+ if (patterns.empty()) {
34
+ std::cout << options.help() << std::endl;
35
36
}
37
0 commit comments