Skip to content

Commit 11a26f7

Browse files
authored
Hide the --line-length option (#1147)
Towards #1115 This is option is not intended to be user facing. It is not ergonomic, and it causes confusion in the current state. The option is not removed because it is used for tests, and we don't want to break scripts which are passing the option today.
1 parent f79a982 commit 11a26f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/src/cli/options.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ void defineOptions(ArgParser parser,
8585
if (verbose) parser.addSeparator('Other options:');
8686

8787
parser.addOption('line-length',
88-
abbr: 'l', help: 'Wrap lines longer than this.', defaultsTo: '80');
88+
abbr: 'l',
89+
help: 'Wrap lines longer than this.',
90+
defaultsTo: '80',
91+
hide: true);
8992
parser.addOption('indent',
9093
abbr: 'i',
9194
help: 'Add this many spaces of leading indentation.',

0 commit comments

Comments
 (0)