Index: pkg/args/lib/src/usage.dart |
diff --git a/pkg/args/lib/src/usage.dart b/pkg/args/lib/src/usage.dart |
index 3244c4e5aeaefaa7f8d45e8ef6afa307090b3ee5..177a0f906ee4f6bfd4267c072adf750cdbc974f1 100644 |
--- a/pkg/args/lib/src/usage.dart |
+++ b/pkg/args/lib/src/usage.dart |
@@ -127,6 +127,8 @@ class Usage { |
int abbr = 0; |
int title = 0; |
args.options.forEach((name, option) { |
+ if (option.hide) return; |
+ |
// Make room in the first column if there are abbreviations. |
abbr = max(abbr, getAbbreviation(option).length); |