Add isProgram() to help documents.

To determine if the scope is the program or a command.