lib/clin/argument.rb
# Check if the argument is optional(i.e [arg])
Check if the argument is optional
Check if the argument is optional
def check_optional(argument)
    if check_between(argument, '[', ']')
      @optional = true
      return argument[1...-1]
    end
    argument
  end
def check_optional ( argument ) if check_between ( argument , '[' , ']' ) @optional = true return argument [ 1 ... - 1 ] end argument end
Check if the argument is optional(i.e [arg])
Check if the argument is optional ( i . e [ arg ] )
argument
<not_specific>