Module: HTTY::CLI::BodyOpenCommand::ClassMethods
- Defined in:
- lib/htty/cli/body_open_command.rb
Instance Method Summary collapse
-
#command_line_arguments ⇒ Object
Returns the arguments for the command-line usage of the command.
-
#help_extended ⇒ Object
Returns the extended help text for the command.
Instance Method Details
#command_line_arguments ⇒ Object
Returns the arguments for the command-line usage of the command.
17 18 19 |
# File 'lib/htty/cli/body_open_command.rb', line 17 def command_line_arguments '[OPTIONS]' end |
#help_extended ⇒ Object
Returns the extended help text for the command.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/htty/cli/body_open_command.rb', line 22 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 |