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

- old
+ new

@@ -50,17 +50,21 @@ c.option \ '--snapshot_limit NUM', Integer, "Max number of snapshots to upload, useful for testing. Default is unlimited." c.option \ + '--[no-]enable_javascript', + "Whether or not to enable JavaScript when rendering all snapshots. Default false." + c.option \ '--threads NUM', Integer, "Number of threads in pools for snapshot and resource uploads. " + "Defaults to #{DEFAULT_NUM_THREADS}, max #{MAX_NUM_THREADS}." 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 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