sassCliArgs top-level property

ArgParser sassCliArgs
final

The CLI options for pub run w_common compile_sass.

Implementation

final ArgParser sassCliArgs = ArgParser()
  ..addMultiOption(outputStyleArg,
      abbr: 's',
      help: 'The output style used to format the compiled CSS.',
      defaultsTo: outputStyleDefaultValue,
      splitCommas: true)
  ..addOption(expandedOutputStyleFileExtensionArg,
      help:
          'The file extension that will be used for the CSS compiled using \n`expanded` outputStyle.',
      defaultsTo: expandedOutputStyleFileExtensionDefaultValue)
  ..addOption(compressedOutputStyleFileExtensionArg,
      help:
          'The file extension that will be used for the CSS compiled using \n`compressed` outputStyle.\n'
          '(defaults to $compressedOutputStyleFileExtensionDefaultValue, or .min.css\n'
          ' if `--$outputStyleArg` contains more than one style)')
  ..addOption(sourceDirArg,
      help:
          'The directory where the `.scss` files that you want to compile live. \n(defaults to $sourceDirDefaultValue, or the value of `--$outputDirArg`, if specified.)')
  ..addOption(outputDirArg,
      help:
          'The directory where the compiled CSS should go. \n(defaults to $outputDirDefaultValue, or the value of `--$sourceDirArg`, if specified.)')
  ..addMultiOption(watchDirsArg,
      splitCommas: true,
      defaultsTo: const <String>[],
      help:
          'Directories that should be watched in addition to `sourceDir`. \nOnly valid with --watch.')
  ..addFlag(watchFlag,
      negatable: false,
      help: 'Watch stylesheets and recompile when they change.')
  ..addFlag(checkFlag,
      abbr: 'c',
      negatable: false,
      help:
          'When set to true, no `.css` outputs will be written to disk, \nand a non-zero exit code will be returned if `sass.compile()` \nproduces results that differ from those found in the committed \n`.css` files. \nIntended only for use as a CI safeguard.')
  ..addFlag(helpFlag,
      abbr: 'h',
      negatable: false,
      help: 'Prints usage instructions to the terminal.');