Sha256: 446f9d7ed671ecdcf889e434166306fce981d82d00674d74684e81fedb9a5cdd
Contents?: true
Size: 640 Bytes
Versions: 4
Compression:
Stored size: 640 Bytes
Contents
module Scide class Opts < Upoj::Opts def initialize super({ :banner => { :usage => '[OPTION]... PROJECT', :description => 'generates GNU Screen configuration files.' } }) on '-c', '--config FILE', 'load configuration from FILE' on '--dry-run', 'show what would be run but do not execute' on('--version', 'show version and exit'){ puts "#{program_name} #{Scide::VERSION}"; exit 0 } help!.usage! end def parse! args begin super args rescue StandardError => err Scide.fail :invalid_argument, err end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
scide-0.0.5 | lib/scide/opts.rb |
scide-0.0.4 | lib/scide/opts.rb |
scide-0.0.3 | lib/scide/opts.rb |
scide-0.0.2 | lib/scide/opts.rb |