Class: Smartdict::Gui::Cli
- Inherits:
-
Object
- Object
- Smartdict::Gui::Cli
- Defined in:
- lib/smartdict/gui/cli.rb
Overview
Handles options for smartdict-gtk command.
Class Method Summary collapse
Class Method Details
.run(args) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/smartdict/gui/cli.rb', line 3 def self.run(args) case args.first when nil, /\s+/ run_application when '-v', '--version', 'version' puts when '-h', '--help', 'help', /\w+/ puts end end |