Documentation

CliArgs
in package

Table of Contents

Properties

$filePathOrCssString  : string|null
$options  : string|null

Methods

__construct()  : mixed
Constructor
extractArguments()  : array<string|int, mixed>

Properties

$filePathOrCssString

public string|null $filePathOrCssString = null

$options

public string|null $options = null

Methods

__construct()

Constructor

public __construct(array<string|int, mixed> $aArguments) : mixed
Parameters
$aArguments : array<string|int, mixed>

arguments to be parsed (@see $_SERVER['argv']) Accepts "-o", "--options" '}' Accepts a string as last argument, a file path or a string containing CSS

extractArguments()

private extractArguments(array<string|int, mixed> $aArguments) : array<string|int, mixed>
Parameters
$aArguments : array<string|int, mixed>

array of arguments to be parsed (@see $_SERVER['argv'])

Return values
array<string|int, mixed>

an associative array of key=>value arguments


        
On this page

Search results