Skip to content

Commit

Permalink
Fix doc subcommand if no path given
Browse files Browse the repository at this point in the history
  • Loading branch information
arshajii committed Nov 13, 2024
1 parent 37ff25a commit d13d6a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion codon/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d13d6a5

Please sign in to comment.