Using parameters is no longer an option, use:
void main(List<String> args) {
print(args);
}
To get the executable, use Platform.executable (the platform is taken from dart: io)
To parse the arguments passed to main, use this cool package
source
share