mirror of
https://github.com/exaloop/codon.git
synced 2025-06-03 15:03:52 +08:00
Fix doc subcommand if no path given
This commit is contained in:
parent
37ff25a907
commit
d13d6a58e3
@ -121,7 +121,8 @@ int docMode(const std::vector<const char *> &args, const std::string &argv0) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
collectPaths(args[1]);
|
if (args.size() > 1)
|
||||||
|
collectPaths(args[1]);
|
||||||
auto compiler = std::make_unique<codon::Compiler>(args[0]);
|
auto compiler = std::make_unique<codon::Compiler>(args[0]);
|
||||||
bool failed = false;
|
bool failed = false;
|
||||||
auto result = compiler->docgen(files);
|
auto result = compiler->docgen(files);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user