{
  "description": "Open the TUI on a database, print its path, back it up, or try the demo. The db, config, eval and pro subcommands are left out.",
  "options": [
    {
      "names": [
        "--print-path"
      ],
      "description": "Print resolved database path and exit"
    }
  ],
  "args": [
    {
      "name": "database_path",
      "description": "Defaults to the standard location.",
      "isOptional": true,
      "template": "filepaths"
    }
  ],
  "name": "micasa",
  "subcommands": [
    {
      "name": "backup",
      "description": "Back up the database",
      "options": [
        {
          "names": [
            "--source"
          ],
          "description": "Source database",
          "args": {
            "name": "source",
            "isOptional": false,
            "template": "filepaths"
          }
        }
      ],
      "args": [
        {
          "name": "destination",
          "isOptional": true,
          "template": "filepaths"
        }
      ]
    },
    {
      "name": "demo",
      "description": "Demo with sample data",
      "options": [
        {
          "names": [
            "--seed-only"
          ],
          "description": "Seed data and exit"
        },
        {
          "names": [
            "--years"
          ],
          "description": "Years of sample data",
          "args": {
            "name": "years",
            "isOptional": false
          }
        }
      ],
      "args": [
        {
          "name": "database_path",
          "description": "Without a path, an in-memory database is used.",
          "isOptional": true,
          "template": "filepaths"
        }
      ]
    }
  ]
}
