HomePhorge

(#14901) Use the last argument when there are duplicates
97e64c34e353Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#14901) Use the last argument when there are duplicates

Previously, Trollop would raise an error if the command line contained
duplicate arguments. This caused the application to ignore all arguments
because of the error handling around Trollop. The argument handling will
now accept duplicate arguments, but will only use the last duplicate's
value. This is the same as the behaviour of 2.7.

Details

Provenance
Andrew Parker <andy@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU47465a887929: (#14901) Refactored test to improve readability
Branches
Unknown
Tags
Unknown

Event Timeline

Andrew Parker <andy@puppetlabs.com> committed rPU97e64c34e353: (#14901) Use the last argument when there are duplicates (authored by Andrew Parker <andy@puppetlabs.com>).Jun 12 2012, 1:38 AM