This PR makes sail <command> <args> always pass <args> to <command>.
Motivation
I found some discrepancies when using the tinker subcommand:
artisan tinker -h shows tinker's help
sail tinker -h directly enters the REPL
More specifically, my use case was to load a file that takes care of performing some initialization for me. Setting the current user, maybe assigning some variables that I'll need while testing things. But that doesn't work either:
When looking at the sail script, I noticed that most commands forward $@, but tinker, mysql, mariadb, psql, redis, and open don't.
I believe this is confusing behavior, as it makes sail differ from how the actual underlying program works (like the tinker example). If a user passes an extra argument they probably do it for a reason, so with this change every argument is passed as-is.
This PR makes
sail <command> <args>
always pass<args>
to<command>
.Motivation
I found some discrepancies when using the
tinker
subcommand:artisan tinker -h
shows tinker's helpsail tinker -h
directly enters the REPLMore specifically, my use case was to load a file that takes care of performing some initialization for me. Setting the current user, maybe assigning some variables that I'll need while testing things. But that doesn't work either:
When looking at the
sail
script, I noticed that most commands forward$@
, buttinker
,mysql
,mariadb
,psql
,redis
, andopen
don't.I believe this is confusing behavior, as it makes sail differ from how the actual underlying program works (like the tinker example). If a user passes an extra argument they probably do it for a reason, so with this change every argument is passed as-is.