Parser
extends Horde_Argv_Parser
in package
A test helper for testing Horde_Argv based classes.
Copyright 2010-2021 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Tags
Table of Contents
- __construct() : mixed
- parserError() : mixed
- Print a usage message incorporating $msg to stderr and exit.
- parserExit() : mixed
Methods
__construct()
public
__construct([array<string|int, mixed> $args = [] ]) : mixed
Parameters
- $args : array<string|int, mixed> = []
Return values
mixed —parserError()
Print a usage message incorporating $msg to stderr and exit.
public
parserError(string $msg) : mixed
If you override this in a subclass, it should not return -- it should either exit or raise an exception.
Parameters
- $msg : string
Return values
mixed —parserExit()
public
parserExit(mixed $status[, mixed $msg = null ]) : mixed
Parameters
- $status : mixed
- $msg : mixed = null