Skip to content

Commit

Permalink
Capitalize descriptions shown in CLI help
Browse files Browse the repository at this point in the history
  • Loading branch information
eggplants committed Aug 30, 2023
1 parent a048821 commit d73460d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/tapioca/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Cli < Thor
desc: "Verbose output for debugging purposes",
default: false

desc "init", "get project ready for type checking"
desc "init", "Get project ready for type checking"
def init
# We need to make sure that trackers stay enabled until the `gem` command is invoked
Runtime::Trackers.with_trackers_enabled do
Expand All @@ -41,7 +41,7 @@ def init
print_init_next_steps
end

desc "configure", "initialize folder structure and type checking configuration"
desc "configure", "Initialize folder structure and type checking configuration"
option :postrequire, type: :string, default: DEFAULT_POSTREQUIRE_FILE
def configure
command = Commands::Configure.new(
Expand All @@ -52,7 +52,7 @@ def configure
command.run
end

desc "require", "generate the list of files to be required by tapioca"
desc "require", "Generate the list of files to be required by tapioca"
option :postrequire, type: :string, default: DEFAULT_POSTREQUIRE_FILE
def require
command = Commands::Require.new(
Expand All @@ -62,7 +62,7 @@ def require
command.run
end

desc "todo", "generate the list of unresolved constants"
desc "todo", "Generate the list of unresolved constants"
option :todo_file,
type: :string,
desc: "Path to the generated todo RBI file",
Expand All @@ -79,7 +79,7 @@ def todo
command.run_with_deprecation
end

desc "dsl [constant...]", "generate RBIs for dynamic methods"
desc "dsl [constant...]", "Generate RBIs for dynamic methods"
option :outdir,
aliases: ["--out", "-o"],
banner: "directory",
Expand Down Expand Up @@ -168,7 +168,7 @@ def dsl(*constant_or_paths)
command.run
end

desc "gem [gem...]", "generate RBIs from gems"
desc "gem [gem...]", "Generate RBIs from gems"
option :outdir,
aliases: ["--out", "-o"],
banner: "directory",
Expand Down Expand Up @@ -298,7 +298,7 @@ def gem(*gems)
end
map "gems" => :gem

desc "check-shims", "check duplicated definitions in shim RBIs"
desc "check-shims", "Check duplicated definitions in shim RBIs"
option :gem_rbi_dir, type: :string, desc: "Path to gem RBIs", default: DEFAULT_GEM_DIR
option :dsl_rbi_dir, type: :string, desc: "Path to DSL RBIs", default: DEFAULT_DSL_DIR
option :shim_rbi_dir, type: :string, desc: "Path to shim RBIs", default: DEFAULT_SHIM_DIR
Expand Down Expand Up @@ -351,7 +351,7 @@ def annotations

map ["--version", "-v"] => :__print_version

desc "--version, -v", "show version"
desc "--version, -v", "Show version"
def __print_version
puts "Tapioca v#{Tapioca::VERSION}"
end
Expand Down

0 comments on commit d73460d

Please sign in to comment.