configure method

  1. @override
void configure(
  1. ArgParser parser
)

Auto-applies signature to the parser when set. Override to register extra ArgParser features (mandatory options, aliases, custom value validators). When you override, call super.configure(parser) first if you also use the signature DSL.

Implementation

@override
void configure(ArgParser parser) {
  // 1. Let the signature DSL register every single-value option/flag.
  super.configure(parser);

  // 2. Register multi-value options the DSL cannot model.
  parser.addMultiOption('sha256-fingerprints', help: 'SHA-256 fingerprints.');

  parser.addMultiOption(
    'paths',
    defaultsTo: ['/*'],
    help: 'Paths to handle.',
  );
}