We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0361042 commit f76f9adCopy full SHA for f76f9ad
1 file changed
lib/executable.dart
@@ -73,6 +73,16 @@ Future<void> main(List<String> args) async {
73
final bool verbose = args.contains('-v') || args.contains('--verbose') || veryVerbose;
74
final bool prefixedErrors = args.contains('--prefixed-errors');
75
76
+ // Support universal help idioms.
77
+ final int powershellHelpIndex = args.indexOf('-?');
78
+ if (powershellHelpIndex != -1) {
79
+ args[powershellHelpIndex] = '-h';
80
+ }
81
+ final int slashQuestionHelpIndex = args.indexOf('/?');
82
+ if (slashQuestionHelpIndex != -1) {
83
+ args[slashQuestionHelpIndex] = '-h';
84
85
+
86
final bool doctor = (args.isNotEmpty && args.first == 'doctor') ||
87
(args.length == 2 && verbose && args.last == 'doctor');
88
final bool help = args.contains('-h') ||
0 commit comments