Knowing the name of the executing script #409
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
type-enhancement
A request for a change that isn't a bug
This issue was originally filed by [email protected]
It would be nice to have access in Dart to the name of the executing script. For example, getting 'myscript.dart' from the command:
dart_bin myscript.dart 1 2 3
$ cat myscript.dart
main() {$scriptName $ {Strings.join(new Options().argument)}');
String scriptName = .... // api to get the name
print('command invoked: dart_bin
}
The Options class does not provide it, it currently just provides [1, 2, 3].
The text was updated successfully, but these errors were encountered: