Module: HTTY::CLI::BodyOpenCommand::ClassMethods

Defined in:
lib/htty/cli/body_open_command.rb

Instance Method Summary collapse

Instance Method Details

#command_line_argumentsObject

Returns the arguments for the command-line usage of the command.



22
23
24
# File 'lib/htty/cli/body_open_command.rb', line 22

def command_line_arguments
  '[OPTIONS]'
end

#help_extendedObject

Returns the extended help text for the command.



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/htty/cli/body_open_command.rb', line 27

def help_extended
  "#{help_extended_preamble}\n"                                            +
  "\n"                                                                     +
  'The shell command used to launch the program is platform-specific. On ' +
  "Windows, the 'start' command is used. On other platforms, the 'open' "  +
  "command is used. (The 'open' command may not be available on your "     +
  "system.)\n"                                                             +
  "\n"                                                                     +
  'You may specify options to be passed to the program. For example, on '  +
  'Mac OS X, your default program for HTML files may be Google Chrome, '   +
  'but you can launch Firefox instead by typing '                          +
  "#{strong command_line + ' -a firefox'}. Likewise, on Windows your "     +
  'default program for HTML files may be Internet Explorer, but you can '  +
  "launch Opera instead by typing #{strong command_line + ' opera'}."
end