Usage: ${command} [OPTION...] APP_DIR
Generate files for a Palm webOS application.

Options:
-f, --overwrite             Overwrite existing files
-l, --list                  List the available templates
-p, --property=PROPERTY     Set the property PROPERTY
-t, --template=TEMPLATE     Use the template named TEMPLATE
    --version               Display version info and exit
    --help                  Display this help and exit

APP_DIR is the application directory. It will be created if it does not exist.

PROPERTY defines properties to be used during generation. Properties can be
specified as key-value pairs of the form "key=value" or as JSON objects of the
form "{'key1':'value1', 'key2':'value2', ...}". Surrounding quotes are required
in both cases.

TEMPLATE is the application template to use. If not specified, the default
template is used ('new_app').

Examples:

# List the available templates
${command} -l

# Generate a "hello world" sample application in ~/projects/hello and set the title.
${command} -t hello_app -p "title=My First App" ~/projects/hello

# Generate a new application in ~/projects/newapp.
${command} -t new_app ~/projects/newapp

# Generate a new application in ~/projects/ticker and set the id, version,
# vendor and title.
${command} -p "{'id':'com.example.ticker', 'version':'1.0.0', 'vendor':'My Shop', 'title':'Stock Ticker'}" ~/projects/ticker

# Generate a new scene named "first" in ~/projects/ticker.
${command} -t new_scene -p "name=first" ~/projects/ticker
