Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
docs: add comment about Option's mandatory attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
kroikie committed Sep 8, 2024
1 parent e623652 commit 7665d30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/arg_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ class ArgParser {
/// often surprising, and its use is discouraged in favor of reading values
/// from the [ArgResults].
///
/// If [mandatory] is `true` an exception will be thrown when this option is
/// accessed but not set. If this option is not set and not accessed, no
/// exception is thrown.
///
/// If [hide] is `true`, this option won't be included in [usage].
///
/// If [aliases] is provided, these are used as aliases for [name]. These
Expand Down

0 comments on commit 7665d30

Please sign in to comment.