HomePhabricator

Treat non-string arguments as normal arguments in PhutilArgumentParser

Description

Treat non-string arguments as normal arguments in PhutilArgumentParser

Summary:
This treats non-string arguments as "normal" arguments in PhutilArgumentParser (basically it prevents it from trying to detect - or -- prefixes).

In Omni, I use the PhutilArgumentParser to parse arguments, but Omni supports passing structured data (arrays, objects and other things with types) as arguments to builtins and Omni scripts.

Test Plan: Didn't see errors due to strncmp, etc. when passing arrays to builtins.

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11138

Details

Provenance
hach-queAuthored on
hach-quePushed on Jan 8 2015, 3:29 AM
Reviewer
Blessed Reviewers
Differential Revision
D11138: Treat non-string arguments as normal arguments in PhutilArgumentParser
Parents
rPHU7013bb4a19d2: Minor linter fix
Branches
Unknown
Tags
Unknown