OnvifCreateUsersDeviceManagementCommand constructor

OnvifCreateUsersDeviceManagementCommand()

Implementation

OnvifCreateUsersDeviceManagementCommand() {
  argParser
    ..addOption('users-file',
        abbr: 'f',
        valueHelp: 'yaml or json file path',
        help:
            'The path to the file that lists users to be created, cannot be used with other options.')
    ..addOption(
      'username',
      abbr: 'u',
      valueHelp: 'string',
      help: 'Username string.',
    )
    ..addOption(
      'password',
      abbr: 'p',
      valueHelp: 'string',
      help: 'Password string.',
    )
    ..addOption(
      'user-level',
      abbr: 'l',
      valueHelp: 'enum',
      allowed: UserLevel.values.map((userLevel) => userLevel.name).toList(),
      help: 'User level string.',
    );
}