{
  "description": "Add, search and view notes. Sync, login, edit and remove are left out.",
  "name": "dnote",
  "subcommands": [
    {
      "name": "add",
      "description": "Add a note",
      "options": [
        {
          "names": [
            "--content",
            "-c"
          ],
          "description": "Leave empty to open your editor.",
          "args": {
            "name": "content",
            "description": "Leave empty to open your editor.",
            "isOptional": false
          }
        }
      ],
      "args": [
        {
          "name": "book",
          "isOptional": true
        }
      ]
    },
    {
      "name": "find",
      "description": "Find notes",
      "options": [
        {
          "names": [
            "--book",
            "-b"
          ],
          "description": "Only in book",
          "args": {
            "name": "book",
            "isOptional": false
          }
        }
      ],
      "args": [
        {
          "name": "query",
          "isOptional": true
        }
      ]
    },
    {
      "name": "view",
      "description": "View books or notes",
      "options": [
        {
          "names": [
            "--name-only"
          ],
          "description": "Book names only"
        },
        {
          "names": [
            "--content-only"
          ],
          "description": "Content only"
        }
      ],
      "args": [
        {
          "name": "book",
          "description": "Omit to list all books.",
          "isOptional": true
        },
        {
          "name": "index",
          "isOptional": true
        }
      ]
    }
  ]
}
