Skip to content

Commit

Permalink
Improved help banner
Browse files Browse the repository at this point in the history
  • Loading branch information
kojix2 committed Mar 23, 2024
1 parent b2e2657 commit f59fba9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/deepl/parser.cr
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ module DeepL
def initialize
super()
@opt = Options.new
self.banner = "Usage: deepl [options] <file>"
# on("doc", "Upload and translate a document") do
# opt.action = Action::Document
# end
self.banner = <<-BANNER
Program: DeepL CLI (Simple command line tool for DeepL)
Version: #{DeepL::VERSION}
Source: https://github.com/kojix2/deepl-cli
Usage: deepl [options] <file>
BANNER
on("doc", "Translate document") do
opt.action = Action::Document
end
Expand Down

0 comments on commit f59fba9

Please sign in to comment.