Skip to content

Commit d13d6a5

Browse files
committed
Fix doc subcommand if no path given
1 parent 37ff25a commit d13d6a5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

codon/app/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ int docMode(const std::vector<const char *> &args, const std::string &argv0) {
121121
}
122122
};
123123

124-
collectPaths(args[1]);
124+
if (args.size() > 1)
125+
collectPaths(args[1]);
125126
auto compiler = std::make_unique<codon::Compiler>(args[0]);
126127
bool failed = false;
127128
auto result = compiler->docgen(files);

0 commit comments

Comments
 (0)