Created
January 4, 2023 19:15
-
-
Save rubinlinux/64af990e516c118495ed5ca0d1f1d77f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ "scripts": { | |
+ "foo": "ls", | |
#by itself the command works | |
$ composer foo | |
> ls | |
app ... | |
#it accepts arguments ok, as long as they are not composer arguments | |
$ composer foo -- -l | |
> ls '-l' | |
total 512 | |
drwxrwxr-x 9 rubin rubin 4096 Dec 20 15:17 app | |
# ls -d shows directories only, instead composer is expecting a working directory argument | |
$ composer foo -- -d | |
[RuntimeException] | |
Invalid working directory specified, does not exist. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment