In this article we will look at the spark framework help and man commands, flags for altering the presentation of the output, and default behavior.

command: php spark.php When ran without a command, spark displays a simple message, telling us in few lines what spark is, and encouraging us to run the help command, for more info. When ran with a wrong command, we see an error message, letting us know the command is wrong, and the standard help message.

command: php spark.php -h The help command gives us a help message of moderate depth and verbosity. The more in-depth and paginated command will be ‘man’, which will give the user a manual, but it is not implemented yet.



Back