argParser property

ArgParser argParser
final

Command line arguements

Implementation

static final ArgParser argParser = ArgParser()
  ..addFlag('help',
      abbr: 'h', help: 'Print this help information.', negatable: false)
  ..addFlag('respawn',
      help: 'Automatically respawn crashed application instances.',
      defaultsTo: true,
      negatable: true)
  ..addFlag('use-zone',
      negatable: false, help: 'Create a new Zone for each request.')
  ..addFlag('quiet', negatable: false, help: 'Completely mute logging.')
  ..addFlag('ssl',
      negatable: false, help: 'Listen for HTTPS instead of HTTP.')
  ..addFlag('http2',
      negatable: false, help: 'Listen for HTTP/2 instead of HTTP/1.1.')
  ..addOption('address',
      abbr: 'a', defaultsTo: '127.0.0.1', help: 'The address to listen on.')
  ..addOption('concurrency',
      abbr: 'j',
      defaultsTo: Platform.numberOfProcessors.toString(),
      help: 'The number of isolates to spawn.')
  ..addOption('port',
      abbr: 'p', defaultsTo: '3000', help: 'The port to listen on.')
  ..addOption('certificate-file', help: 'The PEM certificate file to read.')
  ..addOption('certificate-password',
      help: 'The PEM certificate file password.')
  ..addOption('key-file', help: 'The PEM key file to read.')
  ..addOption('key-password', help: 'The PEM key file password.');