Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Oct 14, 2024
1 parent f8f3672 commit db3c8fe
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkgs/args/lib/src/arg_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,10 @@ class ArgParser {
///
/// If [hide] is `true`, this option won't be included in [usage].
///
/// If [hideNegatedUsage] is `true`, the fact that this flag can be negated will
/// not be documented in [usage].
/// It is an error for [hideNegatedUsage] to be `true` if [negatable] is `false`.
/// If [hideNegatedUsage] is `true`, the fact that this flag can be negated
/// will not be documented in [usage].
/// It is an error for [hideNegatedUsage] to be `true` if [negatable] is
/// `false`.
///
/// If [aliases] is provided, these are used as aliases for [name]. These
/// aliases will not appear as keys in the [options] map.
Expand Down Expand Up @@ -315,7 +316,8 @@ class ArgParser {

if (!negatable && hideNegatedUsage) {
throw ArgumentError(
'The option $name cannot have `hideNegatedUsage` without being negatable.',
'The option $name cannot have `hideNegatedUsage` '
'without being negatable.',
);
}

Expand Down

0 comments on commit db3c8fe

Please sign in to comment.