Skip to content

Commit e184ffa

Browse files
committed
Merged upstream master
Merge branch 'master' of github.com:pantheon-systems/cli
2 parents 2185e87 + b15b038 commit e184ffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/commands/art.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Art_Command extends Terminus_Command {
1616
*
1717
*/
1818
function __invoke( $args, $assoc_args ) {
19-
$artwork = array_shift($args);
19+
$artwork = array_shift($args) ?: array_keys($this->works, 0);
2020

2121
if (!empty($artwork) && array_key_exists($artwork, $this->works)){
2222
echo Terminus::colorize("%g".base64_decode($this->works[$artwork])."%n")."\n";

0 commit comments

Comments
 (0)