mirror of https://github.com/exaloop/codon.git
Fix doc subcommand if no path given
parent
37ff25a907
commit
d13d6a58e3
codon/app
|
@ -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]);
|
||||
bool failed = false;
|
||||
auto result = compiler->docgen(files);
|
||||
|
|
Loading…
Reference in New Issue