getArgResults method
Return argResults
Implementation
ArgResults getArgResults(List<String> arguments, ArgParser parser) {
parser.addOption(AppConstants.argLongCoverage,
abbr: AppConstants.argShortCoverage, mandatory: false);
parser.addOption(AppConstants.argLcovGen, mandatory: false);
parser.addOption(AppConstants.argIncludeUntestedFiles, mandatory: false);
parser.addCommand(AppConstants.cmdGenRefs, ArgParser());
parser.addFlag(AppConstants.argLongHelp,
defaultsTo: false,
abbr: AppConstants.argShortHelp,
callback: showHelpAndExit,
help: AppConstants.argHelpDescription);
parser.addOption(AppConstants.argLongExcludeSuffix,
abbr: AppConstants.argShortExcludeSuffix,
defaultsTo: AppConstants.excludeSuffixDefaultValue,
mandatory: false);
parser.addOption(AppConstants.argLongLog,
abbr: AppConstants.argShortLog,
defaultsTo: AppConstants.falseAsStringValue,
mandatory: false);
parser.addOption(AppConstants.argLongPackageName,
abbr: AppConstants.argShortPackageName,
defaultsTo: null,
mandatory: false);
parser.addMultiOption(AppConstants.argLongExcludeFiles,
splitCommas: true, help: AppConstants.argLongExcludeFilesHelp);
parser.addMultiOption(AppConstants.argLongExcludeContents,
splitCommas: true, help: AppConstants.argLongExcludeContentsHelp);
parser.addOption(AppConstants.argLongExcludeContentsPath,
mandatory: false, help: AppConstants.argLongExcludeContentsPathHelp);
final argResults = parser.parse(arguments);
return argResults;
}