114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
# File 'lib/gonzui/cmdapp/app.rb', line 114
def parse_options
option_table = [
["--help", GetoptLong::NO_ARGUMENT],
["--version", GetoptLong::NO_ARGUMENT],
["--quiet", "-q", GetoptLong::NO_ARGUMENT],
["--verbose", "-v", GetoptLong::NO_ARGUMENT],
["--db-dir", "-d", GetoptLong::REQUIRED_ARGUMENT],
["--db-cache", GetoptLong::REQUIRED_ARGUMENT],
["--list-formats", GetoptLong::NO_ARGUMENT],
["--dump-config", GetoptLong::NO_ARGUMENT],
["--gonzuirc", GetoptLong::REQUIRED_ARGUMENT]
]
option_table.concat(do_get_option_table)
options = parse_options_to_hash(option_table)
process_common_options(options)
do_process_options(options)
end
|