Class: SplttyCLI::Commands::Help
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- SplttyCLI::Commands::Help
- Defined in:
- lib/spltty_cli/commands/help.rb
Overview
spltty help — print every command with its aliases and options, read
straight from each command's dry-cli metadata.
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/spltty_cli/commands/help.rb', line 10 def call(**) puts "spltty — append entries to the expense ledgers under accounts/" puts puts "Usage:" puts " spltty COMMAND [options]" puts puts "Commands:" SplttyCLI::COMMAND_SPECS.each { |spec| print_command(spec) } puts "Run `spltty COMMAND --help` for details on a single command." end |