F
Fritz Trapper
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",
pt_description => "Maximale Entfernung [m]"
option :help
expected_args :log_file, ut_file
end
What is wrong with my option distance?
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",
pt_description => "Maximale Entfernung [m]"
option :help
expected_args :log_file, ut_file
end
What is wrong with my option distance?