chore(OptionParser): reorder cli flags so they match priority

-s > -f
and
-i > -w
This commit is contained in:
GeopJr 2022-05-19 13:18:44 +03:00
parent 63003ce6b9
commit e895d6b850
2 changed files with 3 additions and 3 deletions

View file

@ -49,7 +49,7 @@ Flags with eg. triangles, circles or symbols, need enough horizontal space to de
### Why are the stripes repeating instead of showing the flag in full? ### Why are the stripes repeating instead of showing the flag in full?
Just like the previous question, BLÅHAJ can't know how long the text is going to be (vertically) as it colorizes the input as it comes in. Just like the previous question, BLÅHAJ can't know how long the text is going to be (vertically) since it colorizes the input as it comes in.
### I would like to add a color scheme or flag ### I would like to add a color scheme or flag

View file

@ -31,14 +31,14 @@ module Blahaj
blahaj -s -b blahaj -s -b
neofetch | blahaj -f gay neofetch | blahaj -f gay
blahaj -f lesbian -m 4 blahaj -f lesbian -m 4
blahaj -- -w /etc/os-release blahaj -w /etc/os-release
#{"Arguments:".colorize(:light_blue)} #{"Arguments:".colorize(:light_blue)}
BANNER BANNER
parser.on("-b", "--background", "Color the background") { CLI["background"] = true } parser.on("-b", "--background", "Color the background") { CLI["background"] = true }
parser.on("-f", "--flag", "Return a flag") { CLI["flag"] = true }
parser.on("-s", "--shark", "Shork") { CLI["shark"] = true } parser.on("-s", "--shark", "Shork") { CLI["shark"] = true }
parser.on("-f", "--flag", "Return a flag") { CLI["flag"] = true }
parser.on("-i", "--individual", "Color individual characters") { CLI["individual"] = true } parser.on("-i", "--individual", "Color individual characters") { CLI["individual"] = true }
parser.on("-w", "--words", "Color individual words") { CLI["words"] = true } parser.on("-w", "--words", "Color individual words") { CLI["words"] = true }
parser.on("-m MULTIPLIER", "--multiplier=MULTIPLIER", "Multiplier for the flag size (-f)") do |multiplier| parser.on("-m MULTIPLIER", "--multiplier=MULTIPLIER", "Multiplier for the flag size (-f)") do |multiplier|