Skip to content

Commit

Permalink
Update src/help-generator_.toit
Browse files Browse the repository at this point in the history
Co-authored-by: Kasper Lund <[email protected]>
  • Loading branch information
floitsch and kasperl authored Nov 22, 2023
1 parent 88eb838 commit fbc7475
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/help-generator_.toit
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,11 @@ build-json-help_ path/List --invoked-command/string -> Map:
parent-command := path[i]
extract-options.call parent-command global-options

json-examples := command.examples_.map: | example/Example |
{
"description": example.description,
"arguments": example.arguments,
"global-priority": example.global-priority,
}
json-examples := command.examples_.map: | example/Example | {
"description": example.description,
"arguments": example.arguments,
"global-priority": example.global-priority,
}

return {
"name": command.name,
Expand Down

0 comments on commit fbc7475

Please sign in to comment.