Browse Source

add help

master
Alexander Popov 5 months ago
parent
commit
5511a355d4
Signed by: Alexander Popov
GPG Key ID: 3F76816AEE08F908
  1. 2
      README.md
  2. 22
      src/vk0nline.cr

2
README.md

@ -1,4 +1,4 @@
# Будь __ОНЛАЙН__ в контакте.
# Будь **ОНЛАЙН** ВКонтакте
## Установка

22
src/vk0nline.cr

@ -1,7 +1,29 @@
require "option_parser"
require "json"
require "colorize"
require "crest"
# program options
begin
OptionParser.parse do |parser|
parser.banner = "Make ONLINE on vk.com\n"
parser.on "--version", "Show version" do
print "vk0nline ".colorize(:green).mode(:bold)
puts "2.0.1".colorize(:yellow)
exit(0)
end
parser.on "-h", "--help", "Show help" do
puts parser
exit(0)
end
end
rescue ex
puts ex.message, ""
end
begin # JSON::ParseException
json = File.open("config.json") do |file|
JSON.parse(file)

Loading…
Cancel
Save