Usage: ${command} [OPTION...] [APP_ID]
Launch applications on a Palm webOS device.

Options:
-c, --close             Close running applications instead of launching
-d, --device=DEVICE     Specify DEVICE to use
    --device-list       List the available devices
-f, --relaunch          Relaunch app (close and reopen)
-i, --inspect           Inspect the application
-q, --list-stages       List the running stages
-s, --stage=STAGE       Specify STAGE to inspect
-l, --list              List the installed applications
-p, --params=PARAMS     Set the launch parameters to PARAMS
    --version           Display version info and exit
    --help              Display this help and exit
   
APP_ID is the id of the application to launch (or close).

DEVICE is a unique identifier which matches a device name, type, or id
(as returned by the device-list option). e.g. Use "usb" for a usb-connected
device, or "tcp" for an emulator (note: emulator must be running). If not
specified, the first device found is used.

STAGE is the id of the application's stage (as returned by the --list-stages option).

PARAMS defines launch parameters to be passed when launching an
application. It is specified as a key-value pair of the form "key:value" or
as a JSON object. Surrounding quotes are required in both cases.

Examples:

# Launch application
${command} com.example.app

# Launch application, passing in framework configuration options
${command} -p "{mojoConfig: {debuggingEnabled:true,timingEnabled:true}}" com.example.app

# Launch and inspect application
${command} -i com.example.app

# List stages of running application
${command} -q com.example.app

# Inspect specific stage of application
${command} -i -s 1023 com.example.app

# Close application
${command} -c com.example.app

# List applications on default device
${command} -l

# List applications on usb device
${command} -d usb -l

# List applications on emulator
${command} -d tcp -l
