Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Webmozart
Console
Api
Args
Format
AbstractOption
isShortNamePreferred
Webmozart\Console\Api\Args\Format\AbstractOption::isShortNamePreferred PHP Method
AbstractOption Class Documentation
Show file
Open project: webmozart/console
isShortNamePreferred()
public
method
Returns whether using the short name is preferred over using the long name.
public
isShortNamePreferred
( ) :
boolean
return
boolean
Returns `true` if the short name is preferred over the long name.
public function isShortNamePreferred() { return (bool) (self::PREFER_SHORT_NAME & $this->flags); }
AbstractOption
__construct
addDefaultFlags
assertFlagsValid
assertLongNameValid
assertShortNameValid
getDescription
getLongName
getShortName
isLongNamePreferred
isShortNamePreferred
removeDashPrefix
removeDoubleDashPrefix