-
-
Notifications
You must be signed in to change notification settings - Fork 6
chore(LLMs): add output parameter #896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -12,10 +12,12 @@ internal static class ArgumentsHelper | |||||
| public static ParseResult Parse(string[] args) | ||||||
| { | ||||||
| var rootFolderOption = new Option<string?>("--root") { Description = "Set the root folder of project" }; | ||||||
| var outputFolderOption = new Option<string?>("--output") { Description = "Set the publish folder of project" }; | ||||||
|
||||||
| var outputFolderOption = new Option<string?>("--output") { Description = "Set the publish folder of project" }; | |
| var outputFolderOption = new Option<string?>("--output") { Description = "Set the publish folder of project", IsRequired = true }; |
Copilot
AI
Jan 8, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the output folder parameter is missing or empty, the function silently returns without providing any feedback to the user. This creates a poor user experience as the user won't know why the tool didn't execute. Consider logging an error message or providing usage information before returning, similar to how other command-line tools behave when required parameters are missing.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -10,10 +10,10 @@ internal static class DocsGenerator | |||||||||||||||||||||||||||||||||||||||||||
| /// <summary> | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
| /// <summary> | |
| /// <summary> | |
| /// Generate all documentation files using the current directory | |
| /// as both the root and output folder. | |
| /// </summary> | |
| public static Task GenerateAllAsync() | |
| { | |
| var currentDirectory = Directory.GetCurrentDirectory(); | |
| return GenerateAllAsync(currentDirectory, currentDirectory); | |
| } | |
| /// <summary> | |
| /// Generate all documentation files using the specified root folder | |
| /// as both the source root and the output root. | |
| /// </summary> | |
| public static Task GenerateAllAsync(string rootFolder) | |
| { | |
| return GenerateAllAsync(rootFolder, rootFolder); | |
| } | |
| /// <summary> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rootFolderOption should be marked as required since the code will silently fail if it's not provided. Without making this parameter required, users won't get proper command-line help indicating this is a mandatory parameter. Consider adding
.IsRequired = trueto the option definition to make the requirement explicit and provide better CLI usability.