dart-lang / args

A command-line argument parsing library for Dart.
https://pub.dev/packages/args
BSD 3-Clause "New" or "Revised" License
214 stars 63 forks source link

Incorrect message in `dart_site --help` #264

Open MaryaBelanger opened 7 months ago

MaryaBelanger commented 7 months ago

After the list of commands, it says:

Run "dart_site help \" for more information about a command.

But it should be:

Run "dart run dart_site help \" for more information about a command.

I can't find where that help message is in this repo though 🙃

atsansone commented 7 months ago

@MaryaBelanger : This appears to work as designed. The usage message is generated with this Dart file:

https://github.com/dart-lang/args/blob/master/lib/command_runner.dart

Specifically, line 36 that constructs the invocation line. That line should include the dart run prefix, but doesn't.

I'll move this to dart-lang/args