Builder constructor
main constructor must pass aguments from main this is where the parser runs
Implementation
Builder({
required this.arguments,
}) {
// make parser
_parser = ArgParser();
_parser.addOption(
"windows_runner_path",
abbr: "p",
mandatory: false,
help:
"Set the folder path of a project that contains the windows\\runner folder. For example, C:\\project_path",
);
_parser.addFlag(
"help",
abbr: "h",
negatable: false,
help: "If passed displays help regarding flags and options",
);
_parser.addFlag(
"overwrite",
abbr: "o",
negatable: true,
defaultsTo: true,
help:
"By default is true, and tells to overwrite existing C++ files to make false pass --no-overwrite",
);
// parse args
_results = _parser.parse(arguments);
}