lib/percy/cli.rb in percy-cli-1.1.0 vs lib/percy/cli.rb in percy-cli-1.2.0

- old
+ new

@@ -46,10 +46,14 @@ c.option \ '--snapshots_regex REGEX', String, 'Regular expression for matching the files to snapshot. Defaults to: "\.(html|htm)$"' c.option \ + '--widths CSV', + String, + 'Comma-separated list of rendering widths for snapshots. Ex: 320,1280"' + c.option \ '--snapshot_limit NUM', Integer, "Max number of snapshots to upload, useful for testing. Default is unlimited." c.option \ '--[no-]enable_javascript', @@ -62,9 +66,10 @@ c.action do |args, options| options.default threads: DEFAULT_NUM_THREADS options.threads = MAX_NUM_THREADS if options.threads > MAX_NUM_THREADS options.enable_javascript = options.enable_javascript + options.widths = (options.widths || '').split(',') raise OptionParser::MissingArgument, 'root folder path is required' if args.empty? if args.length > 1 raise OptionParser::MissingArgument, 'only a single root folder path can be given' end