Index: pkg/args/lib/src/usage.dart |
diff --git a/pkg/args/lib/src/usage.dart b/pkg/args/lib/src/usage.dart |
index a431395ff4f91df5375d403f1550f21e8e175ae6..11be54b38983900ea14ddf0c9223bcb20b2a6923 100644 |
--- a/pkg/args/lib/src/usage.dart |
+++ b/pkg/args/lib/src/usage.dart |
@@ -108,11 +108,16 @@ class Usage { |
} |
String getLongOption(Option option) { |
+ var result; |
if (option.negatable) { |
- return '--[no-]${option.name}'; |
+ result = '--[no-]${option.name}'; |
} else { |
- return '--${option.name}'; |
+ result = '--${option.name}'; |
} |
+ |
+ if (option.valueHelp != null) result += "=<${option.valueHelp}>"; |
+ |
+ return result; |
} |
String getAllowedTitle(String allowed) { |