YoutubeRateVideosCommand constructor

YoutubeRateVideosCommand()

Implementation

YoutubeRateVideosCommand() {
  argParser
    ..addOption('id',
        mandatory: true,
        valueHelp: 'id',
        help:
            'The id parameter specifies the YouTube video ID of the video that is being rated or having its rating removed.')
    ..addOption('rating',
        mandatory: true,
        valueHelp: 'rating',
        allowed: ['dislike', 'like', 'none'],
        allowedHelp: {
          'dislike':
              'Records that the authenticated user disliked the video.',
          'like': 'Records that the authenticated user liked the video.',
          'none':
              'Removes any rating that the authenticated user had previously set for the video.'
        },
        help: 'Specifies the rating to record.');
}