Skip to content

Commit

Permalink
Feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch committed Oct 14, 2024
1 parent 3cbfeaa commit c986a12
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/toit.toit
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,12 @@ main args/List:
root-command.add system-message.build-command

assert:
// Only run the check in assert mode.
// Run the CLI package checks.
// This makes sure that commands without 'run' functionality have
// subcommands, or that examples are valid.
// Otherwise, we could have exceptions when the user tries to run the command
// or tries to generate its help.
// If the check fails, it throws an exception.
root-command.check
true
root-command.run args
Expand Down

0 comments on commit c986a12

Please sign in to comment.