From: Fritz Trapper Date: 2010-12-06T08:01:02+09:00 Subject: Commandline: How to add an own option? I tried it this way, but it fails und the ducumentation is extremely poor: def initialize version "0.0.1" author "me" copyright "2010, me" synopsis "[-dh] log_file out_file" short_description "A simple app example that takes two arguments." long_description "app5 is a simple application" option :version, :names => %w(--version -v) # Here is my new option: option :distance, :names => %w(--distance -d), :arity => [1,1], :arg_description => "Distanz", :opt_description => "Maximale Entfernung [m]" option :help expected_args :log_file, :out_file end What is wrong with my option distance? -- Posted via http://www.ruby-forum.com/.