Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cd0a4d4

Browse files
committed
update
1 parent 498cd3d commit cd0a4d4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎libs/cli-utils/src/App.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,17 @@ public function getStrOpt(string $name, string $default = ''): string
378378
return (string)$this->getOpt($name, $default);
379379
}
380380

381+
/**
382+
* @param string $name
383+
* @param bool $default
384+
*
385+
* @return bool
386+
*/
387+
public function getBoolOpt(string $name, bool $default = false): bool
388+
{
389+
return (bool)$this->getOpt($name, $default);
390+
}
391+
381392
/****************************************************************************
382393
* getter/setter methods
383394
****************************************************************************/

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /