bin/haiti in haiti-hash-1.0.1 vs bin/haiti in haiti-hash-1.1.0
- old
+ new
@@ -45,15 +45,11 @@
end
hi.type.each do |type|
next if type.extended && !args['--extended']
print Paint[type.name, :bold]
- unless type.hashcat.nil? || args['--short'] || args['--john-only']
- print Paint[" [HC: #{type.hashcat}]", :blue]
- end
- unless type.john.nil? || args['--short'] || args['--hashcat-only']
- print Paint[" [JtR: #{type.john}]", :green]
- end
+ print Paint[" [HC: #{type.hashcat}]", :blue] unless type.hashcat.nil? || args['--short'] || args['--john-only']
+ print Paint[" [JtR: #{type.john}]", :green] unless type.john.nil? || args['--short'] || args['--hashcat-only']
puts
end
end
# use case 2, help: already handled by docopt
# use case 3, version: already handled by docopt