{
    "display" : ["name", "synopsis", "options", "extraoption", "description", "examples", "extraexample"],
    "notab":["examples", "extraexample"],
    "notitle" : ["extraoption", "extraexample"],
    "name" : "ares-launch - Launch or close the app",
    "synopsis" : {
        "default" : [
            "ares-launch [OPTION...] <APP_ID>"
        ],
        "tv" : [
            "ares-launch -H, --hosted <APP_DIR> [-I, --host-ip <HOST_IP>]",
            "ares-launch -s, --simulator <WEBOS_TV_VERSION> <APP_DIR> [-sp, --simulator-path <SIMULATOR_PATH>] [OPTION...]"
          ]
    },
    "description" : {
        "default" : [
        "This command launches or closes apps on the DEVICE.",
        "",
        "APP_ID is an app id described in appinfo.json.",
        "",
        "PARAMS can be acquired from 'window.PalmSystem.launchParams' of the web app.",
        "",
        "APP_DIR is the app's working directory.",
        "If 'hosted' option is used with the directory path",
        "an app with id 'com.sdk.ares.hostedapp' is launched on the DEVICE",
        "and it opens the files in the directory.",
        "To close this app, use com.sdk.ares.hostedapp as APP_ID."
        ],
        "ose" : [
        "",
        "LEVEL is priority of logs. (e.g., silly, verbose, info, warn, error)"
        ],
        "apollo" : [
        "",
        "LEVEL is priority of logs. (e.g., silly, verbose, info, warn, error)"
        ],
        "tv" : [
        "",
        "If 'hosted' option does not work with network connection error,",
        "specify the host's IP address with 'host-ip' option.",
        ""
        ]
    },
    "options" : {
        "cmdOpt":"option",
        "default" : ["running", "close", "params"],
        "ose" : ["hosted", "display", "device", "device-list", "help", "version", "verbose", "level"],
        "apollo" : ["hosted", "device", "device-list", "help", "version", "verbose", "level"],
        "tv" : ["device", "device-list", "help", "version", "verbose", "hosted"],
        "signage" : ["device", "device-list", "help", "version", "verbose", "hosted"],
        "device" : [
            "-d, --device <DEVICE> @TAB@ Specify DEVICE to use",
            "@TAB@ If not specified, set to default device"
        ],
        "device-list" : "-D, --device-list @TAB@ List the available DEVICEs",
        "close" : "-c, --close <APP_ID> @TAB@ Close a running app",
        "running" : "-r, --running @TAB@ List the running apps",
        "params" : "-p, --params <PARAMS> @TAB@ Launch/Close an app with the specified parameters",
        "display" : "-dp,--display <DISPLAY_ID> @TAB@ Launch/Close an app on the specified display",
        "hosted" : "-H, --hosted <APP_DIR> @TAB@ Runs only an app without installation",
        "help" : "-h, --help @TAB@ Display this help",
        "version" : "-V, --version @TAB@ Display version info",
        "verbose" : "-v @TAB@ Display this verbose log",
        "level" : "--level <LEVEL> @TAB@ Set log LEVEL and display log as set LEVEL"
    },
    "examples" : {
        "default" : [
            "# Launch an app on the DEVICE",
            "ares-launch com.examples.app -d DEVICE",
            "",
            "# Close an app on the DEVICE",
            "ares-launch -c com.examples.app -d DEVICE",
            "",
            "# Launch an app with parameters",
            "ares-launch com.examples.app -p \"{'data1':'foo', 'data2':'bar'}\" -d DEVICE",
            " Or",
            "ares-launch com.examples.app -p \"data1=foo\" -p \"data2=bar\" -d DEVICE",
            "",
            "# Run an app without installation",
            "ares-launch -H APP_DIR -d DEVICE"
        ],
        "tv" : [
            "",
            "# Run an app without installation using HOST_IP",
            "ares-launch -H APP_DIR -I 192.168.0.10 -d DEVICE",
            "",
            "# Run an app on the webOS TV 22 simulator",
            "ares-launch -s 22 APP_DIR",
            "",
            "# Run an app on the webOS TV 22 simulator located on SIMULATOR_PATH",
            "ares-launch -s 22 -sp /home/webOS_TV_22_Simulator_1.3.0 APP_DIR",
            "",
            "# Run an app on the simulator with parameters",
            "ares-launch -s 22 APP_DIR -p \"{'data1':'foo', 'data2':'bar'}\"",
            " Or",
            "ares-launch -s 22 APP_DIR -p \"data1=foo\" -p \"data2=bar\""
        ], 
        "signage": [
            "",
            "# Run an app without installation using HOST_IP",
            "ares-launch -H APP_DIR -I 192.168.0.10 -d DEVICE"
        ]
    },
    "extraexample" : {
        "cmdOpt" : "hidden",
        "tv" : [
            "# Run an app without installation using HOST_IP",
            "ares-launch -H APP_DIR -I 192.168.0.10 -d DEVICE"
        ]
    }
}
