Skip to content

Commit

Permalink
Prefer ARGV[0] instead of ARGV.first
Browse files Browse the repository at this point in the history
  • Loading branch information
Maumagnaguagno committed Nov 23, 2023
1 parent 03a073a commit a04faf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Spriter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def save(filename, r1 = 0, g1 = 255, b1 = 0, a1 = 255, r2 = 0, g2 = 0, b2 = 0, a
begin
t = Time.now.to_f
div = '--------------------------------'
ext = ARGV.first || 'bmp'
ext = ARGV[0] || 'bmp'
unless File.directory?("sprites/#{ext}")
Dir.mkdir('sprites') unless File.directory?('sprites')
Dir.mkdir("sprites/#{ext}")
Expand Down

0 comments on commit a04faf5

Please sign in to comment.