diff --git a/codon/app/main.cpp b/codon/app/main.cpp index 7d602dae..3451eeed 100644 --- a/codon/app/main.cpp +++ b/codon/app/main.cpp @@ -121,7 +121,8 @@ int docMode(const std::vector &args, const std::string &argv0) { } }; - collectPaths(args[1]); + if (args.size() > 1) + collectPaths(args[1]); auto compiler = std::make_unique(args[0]); bool failed = false; auto result = compiler->docgen(files);