get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/136043/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 136043,
    "url": "http://patches.dpdk.org/api/patches/136043/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240122182611.1904974-4-luca.vizzarro@arm.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20240122182611.1904974-4-luca.vizzarro@arm.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240122182611.1904974-4-luca.vizzarro@arm.com",
    "date": "2024-01-22T18:26:10",
    "name": "[3/4] dts: show help when DTS is ran without args",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "5ecee443dd02d98ea3c7856111a289dfe87b3cee",
    "submitter": {
        "id": 3197,
        "url": "http://patches.dpdk.org/api/people/3197/?format=api",
        "name": "Luca Vizzarro",
        "email": "luca.vizzarro@arm.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20240122182611.1904974-4-luca.vizzarro@arm.com/mbox/",
    "series": [
        {
            "id": 30879,
            "url": "http://patches.dpdk.org/api/series/30879/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30879",
            "date": "2024-01-22T18:26:07",
            "name": "dts: error and usage improvements",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/30879/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/136043/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/136043/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id A89DD4399C;\n\tMon, 22 Jan 2024 19:26:52 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6505E42D2B;\n\tMon, 22 Jan 2024 19:26:38 +0100 (CET)",
            "from foss.arm.com (foss.arm.com [217.140.110.172])\n by mails.dpdk.org (Postfix) with ESMTP id 6908840E13\n for <dev@dpdk.org>; Mon, 22 Jan 2024 19:26:36 +0100 (CET)",
            "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14])\n by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1C0CE1FB;\n Mon, 22 Jan 2024 10:27:22 -0800 (PST)",
            "from localhost.localdomain (unknown [10.57.90.210])\n by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 5346A3F762;\n Mon, 22 Jan 2024 10:26:35 -0800 (PST)"
        ],
        "From": "Luca Vizzarro <luca.vizzarro@arm.com>",
        "To": "dev@dpdk.org",
        "Cc": "Luca Vizzarro <luca.vizzarro@arm.com>,\n =?utf-8?q?Juraj_Linke=C5=A1?= <juraj.linkes@pantheon.tech>,\n Paul Szczepanek <paul.szczepanek@arm.com>",
        "Subject": "[PATCH 3/4] dts: show help when DTS is ran without args",
        "Date": "Mon, 22 Jan 2024 18:26:10 +0000",
        "Message-Id": "<20240122182611.1904974-4-luca.vizzarro@arm.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20240122182611.1904974-1-luca.vizzarro@arm.com>",
        "References": "<20240122182611.1904974-1-luca.vizzarro@arm.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "This commit changes the default behaviour of DTS, making it so that the\nuser automatically sees the help and usage page when running it without\nany arguments set. Instead of being welcomed by an error message.\n\nReviewed-by: Paul Szczepanek <paul.szczepanek@arm.com>\nSigned-off-by: Luca Vizzarro <luca.vizzarro@arm.com>\n---\n dts/framework/settings.py | 6 ++++++\n 1 file changed, 6 insertions(+)",
    "diff": "diff --git a/dts/framework/settings.py b/dts/framework/settings.py\nindex acfe5cad44..5809fd4e91 100644\n--- a/dts/framework/settings.py\n+++ b/dts/framework/settings.py\n@@ -71,6 +71,7 @@\n \n import argparse\n import os\n+import sys\n from collections.abc import Callable, Iterable, Sequence\n from dataclasses import dataclass, field\n from pathlib import Path\n@@ -315,6 +316,11 @@ def get_settings() -> Settings:\n \n     The inputs are taken from the command line and from environment variables.\n     \"\"\"\n+\n+    if len(sys.argv) == 1:\n+        _get_parser().print_help()\n+        sys.exit(1)\n+\n     parsed_args = _get_parser().parse_args()\n     return Settings(\n         config_file_path=parsed_args.config_file,\n",
    "prefixes": [
        "3/4"
    ]
}