Module: P4Util
- Defined in:
- lib/p4_util.rb,
lib/p4_util/version.rb
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
-
.parse_options(args) ⇒ Object
Returns the options as an OpenStruct object.
- .run(args) ⇒ Object
Class Method Details
.parse_options(args) ⇒ Object
Returns the options as an OpenStruct object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/p4_util.rb', line 14 def P4Util.(args) = OpenStruct.new .command = :help .params = [] if args && !args.empty? .command = args.first.to_sym if args.length > 1 .params.concat(args.drop(1)) end end end |