HomePhorge

(#14901) Simplify argument handling in option parser
e474c6821b43Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#14901) Simplify argument handling in option parser

Option specification had been done with a series of shifts and pops to
handle an optional second parameter. Checking the length of the
arguments array is an easier to understand way of achieving this.

Details

Provenance
Andrew Parker <andy@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU97e64c34e353: (#14901) Use the last argument when there are duplicates
Branches
Unknown
Tags
Unknown

Event Timeline

Andrew Parker <andy@puppetlabs.com> committed rPUe474c6821b43: (#14901) Simplify argument handling in option parser (authored by Andrew Parker <andy@puppetlabs.com>).Jun 12 2012, 1:38 AM