added another puts line in -v

This commit is contained in:
koffeejava
2026-03-14 23:33:12 -06:00
parent b4bdd63447
commit e1bafb335d

View File

@@ -34,6 +34,7 @@ module Wfetch
} }
parser.on("-v", "--version", "Shows the current version of wfetch") { parser.on("-v", "--version", "Shows the current version of wfetch") {
puts "#{bold}#{orange}Wfetch 1.1.0 KoffeeJava 2026#{reset}" puts "#{bold}#{orange}Wfetch 1.1.0 KoffeeJava 2026#{reset}"
puts "Made in Crystal by KoffeeJava with Love"
exit exit
} }
parser.on("-h", "--help", "Show this help") do parser.on("-h", "--help", "Show this help") do
@@ -49,7 +50,7 @@ module Wfetch
print "#{bold}#{orange}Wfetch KoffeeJava 2026#{reset}" print "#{bold}#{orange}Wfetch KoffeeJava 2026#{reset}"
config = TOML.parse(File.read(Path["~/.local/share/Wfetch/config.toml"].expand(home: true))) config = TOML.parse(File.read("config/config.toml")].expand(home: true)))
city = config["city"] city = config["city"]
api_key = config["api"] api_key = config["api"]
@@ -104,7 +105,7 @@ module Wfetch
path_config = gets path_config = gets
disp = TOML.parse(File.read(Path["#{path_config}"].expand(home: true))) disp = TOML.parse(File.read(Path["#{path_config}"].expand(home: true)))
else else
disp = TOML.parse(File.read(Path["~/.local/share/Wfetch/disp.toml"].expand(home: true))) disp = TOML.parse(File.read())
end end
repeat = 1 repeat = 1