main function

dynamic main(
  1. List<String> args
)

Implementation

main(List<String> args) {
  var runner = CommandRunner("mdmerge", "Include text files in markdown files");
  runner.addCommand(MergeCommand());
  runner.run(args).catchError((error) {
    if (error is! UsageException) throw error;
    print(error);
    exit(64); // Exit code 64 indicates a usage error.
  });
}