PHP Console User Commands

#1

Hello, I am looking for help.
I have a code that automatically after execution, creates a sprite image assembling all the images from a folder , generates the css code and the html code.
But I need to add those commands down here and specify in the console before execute the php, I dont know where to start :cry:

r,–recursive
Look for images into the assets_folder passed as arguement and all of its subdirectories.
-i,–output-image=IMAGE
Name of the generated image. If blank, the default name is « sprite.png ».
-s,–output-style=STYLE
Name of the generated stylesheet. If blank, the default name is « style.css »

#2

This might give you some pointers on using arguments.

http://www.hackingwithphp.com/21/2/3/your-first-cli-script

1 Like