Module: CommandKit::Man
- Included in:
- Help::Man
- Defined in:
- lib/command_kit/man.rb
Overview
Allows displaying man pages.
Examples
man "passwd"
man "passwd", section: 5
Instance Method Summary collapse
-
#man(page, section: nil) ⇒ Boolean?
Displays the given man page.
Instance Method Details
#man(page, section: nil) ⇒ Boolean?
Displays the given man page.
36 37 38 39 40 41 42 |
# File 'lib/command_kit/man.rb', line 36 def man(page, section: nil) if section system('man',section.to_s,page.to_s) else system('man',page.to_s) end end |