We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2185e87 + b15b038 commit e184ffaCopy full SHA for e184ffa
php/commands/art.php
@@ -16,7 +16,7 @@ class Art_Command extends Terminus_Command {
16
*
17
*/
18
function __invoke( $args, $assoc_args ) {
19
- $artwork = array_shift($args);
+ $artwork = array_shift($args) ?: array_keys($this->works, 0);
20
21
if (!empty($artwork) && array_key_exists($artwork, $this->works)){
22
echo Terminus::colorize("%g".base64_decode($this->works[$artwork])."%n")."\n";
0 commit comments