mirror of
https://github.com/safiire/n65.git
synced 2024-12-12 00:29:03 +00:00
Added --version option
This commit is contained in:
parent
927023d048
commit
ad088d0164
@ -69,10 +69,18 @@ module N65
|
|||||||
@options[:output_file] = output_file;
|
@options[:output_file] = output_file;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
opts.on('-v', '--version', 'Displays Version') do
|
||||||
|
puts "N65 Assembler Version #{N65::VERSION}"
|
||||||
|
exit
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
opts.on('-h', '--help', 'Displays Help') do
|
opts.on('-h', '--help', 'Displays Help') do
|
||||||
puts opts
|
puts opts
|
||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user