This prevents an exception from being raised when PhutilArgumentParser is being used without the standard options. Elsewhere it checks to make sure 'show-standard-options' is an available option before getting it's value, but here it just calls getArg, which causes an exception to be raised.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Commits
- rPHU698792750d4d: Prevent error in PhutilArgumentParser when not using standard options
Saw this occur when hitting this code path in Omni (which doesn't have the standard options for builtins).
Diff Detail
Diff Detail
- Repository
- rPHU libphutil
- Branch
- phutil-bug-fix
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 3684 Build 3694: [Placeholder Plan] Wait for 30 Seconds