Class: Treyja::Command::Help

Inherits:
Object
  • Object
show all
Defined in:
lib/treyja/command/help.rb

Instance Method Summary collapse

Instance Method Details

#runObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/treyja/command/help.rb', line 4

def run
  puts <<EOS
Usage: treyja COMMAND [FILE] [OPTIONS]

  If FILE is not given, it reads from STDIN.

Available options:
  -h,--help                Show this help text
  --output DIR             Directory to output images
  --normalize              Normalize floating values (image only)
  --round INT              Digit to round floating values (default: 4)

Available commands:
  json                     Output tensors in JSON format
  csv                      Output tensors in CSV format
  image                    Create png images and output to DIR
  dump                     Dump in the format of inner expression
EOS
end