Use ARGV like other ruby post-processing scripts

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
Danila Fedorin 2025-02-23 12:22:06 -08:00
parent 816a473913
commit 07408d01a9

View File

@ -4,8 +4,8 @@
require 'nokogiri' require 'nokogiri'
require 'set' require 'set'
# 1) Find all HTML files, excluding those in "venv/" # 1) Process all files passed in from the command line
files = Dir.glob("**/*.html").reject { |f| f.start_with?("venv") } files = ARGV
# 2) Extract used Feather icons # 2) Extract used Feather icons
used_icons = Set.new used_icons = Set.new