address lines_longer_than_80_chars lints
diff --git a/example/arg_parser/pubspec.yaml b/example/arg_parser/pubspec.yaml
index 52f193a..9cb1cbd 100644
--- a/example/arg_parser/pubspec.yaml
+++ b/example/arg_parser/pubspec.yaml
@@ -6,8 +6,10 @@
version: 1.0.0
description: An example of using ArgParser
publish_to: 'none'
+
environment:
- sdk: '>=2.14.0 <3.0.0'
+ sdk: ^3.0.0
+
dependencies:
args:
path: ../..
diff --git a/lib/src/arg_parser.dart b/lib/src/arg_parser.dart
index 7bb21c7..573027f 100644
--- a/lib/src/arg_parser.dart
+++ b/lib/src/arg_parser.dart
@@ -119,9 +119,11 @@
///
/// 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.
@@ -315,8 +317,7 @@
if (!negatable && hideNegatedUsage) {
throw ArgumentError(
- 'The option $name cannot have `hideNegatedUsage` without being negatable.',
- );
+ 'The option $name can only use hideNegatedUsage if it is negatable.');
}
var option = newOption(name, abbr, help, valueHelp, allowed, allowedHelp,
diff --git a/pubspec.yaml b/pubspec.yaml
index 8222f41..fc4a35d 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,8 +1,8 @@
name: args
version: 2.6.0
description: >-
- Library for defining parsers for parsing raw command-line arguments into a set
- of options and values using GNU and POSIX style options.
+ Library for defining parsers for parsing raw command-line arguments into a
+ set of options and values using GNU and POSIX style options.
repository: https://github.com/dart-lang/args
topics: