From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 685F343BE7; Mon, 26 Feb 2024 10:10:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5278842DFD; Mon, 26 Feb 2024 10:10:03 +0100 (CET) Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) by mails.dpdk.org (Postfix) with ESMTP id A4D3D42DFC for ; Mon, 26 Feb 2024 10:10:01 +0100 (CET) Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-565c6cf4819so1791663a12.1 for ; Mon, 26 Feb 2024 01:10:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantheon.tech; s=google; t=1708938601; x=1709543401; darn=dpdk.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+u3zhOiAIrjVO0rwO/BglfxuoHuTxKLe6u4rLVhlfvY=; b=bGXhsxSE8I4Qjhnn1mtYYSfLJAkthV5PuHwgAyEgjmWqKd2gTE7ANU/uNMaGX6wf/a fUwASzGoxgRpFDpndvzxqd9EuweJnZFoZO+G6JQ/d6FPfouxtuB/krKm5TAd+4Fq2Z+x r+lE/eWkfv2nikOlDXvbhyX/j6VVX5afbWQUdJEMGDVAhR5Fjg0GA8pxExg4AIOlYBYj 3eaw8I2Oi8Gh8xdyuaB60OexrP8AYgEWIeneht33mb5aXPscQBqfSLi1SdItIenZkoEC UhJIspKkMrnC0Ja4bhNhOtsEpbt5Fyhpp1punc4hk+3Azfcw9HAml2r1iMsOt/fTrb0+ PlTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708938601; x=1709543401; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+u3zhOiAIrjVO0rwO/BglfxuoHuTxKLe6u4rLVhlfvY=; b=QLrngjFtevS17MwV6EKQ+XAa1K+WaLhpBWj5zEEuZmXy1dxIRR4kdfhfYLGNl5i/j4 DAHsw85Qv4agm4Kvj1FtWlbP0YOqugEZE8ufeB4BwKBuKpINrchc6SPUyGXM2wKHVz22 IonsSKi3Y9T0IYQ+Iwu3L4jifHBo5G0Hv8/I1IUM2eOsR958UIiZbDkuGRRCDTUgDm/l w+pbWVd0YtXEw2Z2UNHIPNT04PLKY6ZxdjkL4JXCQ2tSw0x833JFUu4xCvt2eg5C8yU1 wGLisLhApQAYL6gnljcLIDCgHXJZFgyE/nam9yV2Q+1Xut0/IC7ov6ii66uTyBbrHUMX 08Ug== X-Gm-Message-State: AOJu0Yy7hq7DyrsH1x2vk/t3mh5wVdbSeQD5AZUzfswgARuVqZG672IU rFmEQxFZrMW/XRwS6z4hqo7B9hcmbE3exmsOhxU4Y+u7C+U/8xGm7IWvhh7psCeGBYpMww5CZyF tr5B/4Y1mSteutzOW4x+Ug9ZAiR2ikBHHIRqRB6vuPdq/igwnulDs1A== X-Google-Smtp-Source: AGHT+IF4MKvxDtKDYz1xBkPbWAramIE5idGHNVQsWD4L4fE1WDmc1iP6mtUlBBtZKO3Zf4tQ77d2y+xesbY8ExN59ic= X-Received: by 2002:aa7:d4d4:0:b0:565:9f59:b3b6 with SMTP id t20-20020aa7d4d4000000b005659f59b3b6mr5063118edr.3.1708938601318; Mon, 26 Feb 2024 01:10:01 -0800 (PST) MIME-Version: 1.0 References: <20240122182611.1904974-1-luca.vizzarro@arm.com> <20240122182611.1904974-3-luca.vizzarro@arm.com> <8975b051-f71c-4920-8fdd-0d0663960196@arm.com> In-Reply-To: <8975b051-f71c-4920-8fdd-0d0663960196@arm.com> From: =?UTF-8?Q?Juraj_Linke=C5=A1?= Date: Mon, 26 Feb 2024 10:09:50 +0100 Message-ID: Subject: Re: [PATCH 2/4] dts: customise argparse error message To: Luca Vizzarro Cc: dev@dpdk.org, Paul Szczepanek Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Fri, Feb 23, 2024 at 8:12=E2=80=AFPM Luca Vizzarro wrote: > > On 29/01/2024 13:04, Juraj Linke=C5=A1 wrote: > > I'm curious, what exactly is confusing about the message? > > Unfortunately a bit too much time has passed... but if I remember > correctly I think that given the great amount of arguments, whenever the > message is printed a bit too much information is given to the user. So > bottomline, too crowded The original message is: ./main.py -wdghf usage: main.py [-h] [--config-file CONFIG_FILE] [--output-dir OUTPUT_DIR] [-t TIMEOUT] [-v] [-s] [--tarball TARBALL] [--compile-timeout COMPILE_TIMEOUT] [--test-suite TEST_SUITE [TEST_CASES ...]] [--re-run RE_RUN] main.py: error: unrecognized arguments: -wdghf So this is what's confusing. I guess it doesn't mention that the user should use the help argument and that's where the confusion was? From my point of view that's just standard (to run a command with -h in case of an error such as the one above), but maybe it is better to state it explicitly.