tryArgsCompletion function

ArgResults tryArgsCompletion(
  1. List<String> mainArgs,
  2. ArgParser parser, {
  3. @Deprecated('Useful for testing, but do not released with this set.') bool? logFile,
})

Implementation

ArgResults tryArgsCompletion(
  List<String> mainArgs,
  ArgParser parser, {
  @Deprecated('Useful for testing, but do not released with this set.')
      bool? logFile,
}) {
  tryCompletion(
    mainArgs,
    (List<String> args, String compLine, int compPoint) =>
        getArgsCompletions(parser, args, compLine, compPoint),
    // ignore: deprecated_member_use_from_same_package,deprecated_member_use
    logFile: logFile,
  );
  return parser.parse(mainArgs);
}