Skip to content

Commit 743d75d

Browse files
committed
fix: display arg default if null argument
1 parent b578629 commit 743d75d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sprout/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function argument(string $argument)
3636
}
3737
}
3838

39-
return $this->arguments[$argument] ?? null;
39+
return $this->arguments[$argument] ?? $this->help['arguments'][$argument]['default'];
4040
}
4141

4242
/**

0 commit comments

Comments
 (0)