We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f1f655 commit 0589549Copy full SHA for 0589549
pkgs/args/README.md
@@ -295,11 +295,12 @@ e.g.
295
File `dgit.dart`
296
297
```dart
298
-void main(List<String> args){
+void main(List<String> args) {
299
var runner = CommandRunner("dgit", "A dart implementation of distributed version control.")
300
..addCommand(CommitCommand())
301
..addCommand(StashCommand())
302
- ..run(args);
+ ..run(args);
303
+}
304
```
305
306
When the above `run(args)` line executes it parses the command line args looking for one of the commands (`commit` or `stash`).
0 commit comments