require 'easy_opt_parser/domain/no_required_option' require 'easy_opt_parser/domain/required_option' require 'easy_opt_parser' def given_a_required_option EOP::RequiredOption.new(name: 'path', short: '-p', long: '--path', description: 'Some description here') end def given_options [ EOP::RequiredOption.new(name: 'path', short: '-p', long: '--path', description: 'Some description here') ] end def given_duplicated_options_by_name [ EOP::RequiredOption.new(name: 'path', short: '-p', long: '--path', description: 'Some description here'), EOP::RequiredOption.new(name: 'path', short: '-o', long: '--other', description: 'Some other description here') ] end def given_duplicated_options_by_short [ EOP::RequiredOption.new(name: 'path', short: '-p', long: '--path', description: 'Some description here'), EOP::RequiredOption.new(name: 'other_path', short: '-p', long: '--other', description: 'Some other description here') ] end def given_duplicated_options_by_long [ EOP::RequiredOption.new(name: 'path', short: '-p', long: '--path', description: 'Some description here'), EOP::RequiredOption.new(name: 'other_path', short: '-o', long: '--path', description: 'Some other description here') ] end