summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-06-04 00:20:21 +0200
committerJulian T <julian@jtle.dk>2020-06-04 00:20:21 +0200
commita0177ad890fc8459b5245d4cf9332b1b3470e9be (patch)
tree1ef338460b97f306d1c66226ac766ef4cd89a6b2
parent3afb0b28e0b28a365a92b2bb89a62ea98b8cc896 (diff)
Commit hash is settable on the command line
-rwxr-xr-xbuild.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.rb b/build.rb
index 41b4388..6d74536 100755
--- a/build.rb
+++ b/build.rb
@@ -45,6 +45,9 @@ OptionParser.new do |opts|
opts.on("-s", "--size SIZE", "Size to resize images to") do |size|
options[:size] = size
end
+ opts.on("-c", "--commit HASH", "Commit to display on website") do |hash|
+ options[:commit] = hash
+ end
end.parse!
options[:path] = "build" unless options[:path]