diff options
author | Julian T <julian@jtle.dk> | 2020-06-04 00:20:21 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-06-04 00:20:21 +0200 |
commit | a0177ad890fc8459b5245d4cf9332b1b3470e9be (patch) | |
tree | 1ef338460b97f306d1c66226ac766ef4cd89a6b2 | |
parent | 3afb0b28e0b28a365a92b2bb89a62ea98b8cc896 (diff) |
Commit hash is settable on the command line
-rwxr-xr-x | build.rb | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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] |