groupFormatOptions function

List<FigOption> groupFormatOptions(
  1. List<String> names
)

Implementation

List<FigOption> groupFormatOptions(List<String> names) {
  return names.map((name) {
    return FigOption(
      name: '--$name-group-format',
      description: 'Similar, but format $name input groups with GFTM',
      args: [
        FigArg(
          name: 'GFTM',
          description: '''%<  lines from FILE1
%>  lines from FILE2
%=  lines common to FILE1 and FILE2
%[-][WIDTH][.[PREC]]{doxX}LETTER  printf-style spec for LETTER
LETTERs are as follows for new group, lower case for old group:
F  first line number
L  last line number
N  number of lines = L-F+1
E  F-1
M  L+1
%%  %
%c'C'  the single character C
%c'\\OOO'  the character with octal code OOO''',
        ),
      ],
    );
  }).toList();
}