Pub / Args / Defining options / Unterminated string in example #19106
Labels
area-pkg
Used for miscellaneous pkg/ packages not associated with specific area- teams.
type-documentation
A request to add or improve documentation
This issue was originally filed by Neta...@gmail.com
URL: https://pub.dartlang.org/packages/args
This following code sample is missing a terminating quote mark.
Copying it -as is- into Dart Editor results in an syntax error.
CURRENT
parser.addOption('mode', callback: (mode) => print('Got mode $mode));
REVISION
parser.addOption('mode', callback: (mode) => print('Got mode $mode'));
See screenshot.
Attachment:
args_definingOptions.jpg (121.31 KB)
The text was updated successfully, but these errors were encountered: