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 2B091A0582; Tue, 22 Nov 2022 16:38:38 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD1BD42D71; Tue, 22 Nov 2022 16:38:37 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 60AE5427EB for ; Tue, 22 Nov 2022 16:38:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669131515; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ukllT1s0+z5X2qKONJhr50jH64dnQj8ETfC9gL6ZBkI=; b=I5Kf/MBtK4U3t9KTZNowvtQ4RdiWKjJ5FFIgAPQMaGf5dIkZR2zPCsUIwb9sntietfmvgt qlfPwu5VthJPSEB2MtgymO0OlApAfD3k1bcVulC612R7Za2SbQQzF59TuXeeu2gUsjJlR0 gylhcW+ZeTclr6W1aQgmi/j50Z6yFao= Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-30-2o3DUwbdMqeVEteZ6baheQ-1; Tue, 22 Nov 2022 10:38:34 -0500 X-MC-Unique: 2o3DUwbdMqeVEteZ6baheQ-1 Received: by mail-pg1-f197.google.com with SMTP id f22-20020a635556000000b0046fd05d55cdso8700005pgm.1 for ; Tue, 22 Nov 2022 07:38:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=ukllT1s0+z5X2qKONJhr50jH64dnQj8ETfC9gL6ZBkI=; b=dwUARm4s5K5IQSwgtAXLTecQd0EPdtSm2hdiEgTU1xhpNimXJkCoQa7rXovvYuDuRT XXYW5459JFi7kaTMQWIux5fOCc5GGgI/q4wymJvvgjrC8YH6D2K2P2tw2bnwDcmKFYsk JsZNcTlY8ALqTc/C28NRlqZxGpd4P7NLTodvJgTD8hmDfrOzvWGcg06FH6Wsp6QcWbbJ pbDtwk415oYgMn39P1I7Sq6XuwtmchWTfW/vxQ8wQ72PPcDTCcIOQxEy/rbtPmDGwvFs CsOXUU/+N2RxwIwRku1bn+tc0GQm84y1jq+qjlJZzACUslLvqPGs6SV21k1DfoVI74G6 5rrw== X-Gm-Message-State: ANoB5pn25liwqj5Cp6z5QF4fXRp7aLAvSAhtWkRaJz/gPI48VpfZfNJa gchhtY9Nyd4AMllcBQ+msKmJk0hH7KqZeUIOXpSHT4zaEfQn03IDQVHpV/d8COcd5HKPuFfiDwA yx5lvphfStPwjymJLiq8= X-Received: by 2002:a17:902:aa06:b0:188:beef:b68f with SMTP id be6-20020a170902aa0600b00188beefb68fmr4044935plb.172.1669131513470; Tue, 22 Nov 2022 07:38:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf7/Z63C4s3awTPskAEub4HL5mlkIRjltTqSPxHyTneIV5zLX9AeFPk9WNfJXOkuSkJzpsM3aKJLkK7eXT3D7eg= X-Received: by 2002:a17:902:aa06:b0:188:beef:b68f with SMTP id be6-20020a170902aa0600b00188beefb68fmr4044921plb.172.1669131513109; Tue, 22 Nov 2022 07:38:33 -0800 (PST) MIME-Version: 1.0 References: <20221104113018.4069058-1-thomas@monjalon.net> <20221122153238.2373095-1-thomas@monjalon.net> In-Reply-To: <20221122153238.2373095-1-thomas@monjalon.net> From: David Marchand Date: Tue, 22 Nov 2022 16:38:21 +0100 Message-ID: Subject: Re: [PATCH v2] usertools/hugepages: show usage if no action specified To: Thomas Monjalon Cc: dev@dpdk.org, rjarry@redhat.com, bruce.richardson@intel.com, stephen@networkplumber.org, dmitry.kozliuk@gmail.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" 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 Tue, Nov 22, 2022 at 4:33 PM Thomas Monjalon wrote: > > Previously, the script was doing nothing if no argument was provided. > > If neither show, mount/unmount, clear/reserve are specified, > it is assumed that the user does not know how to use the script. > So the usage and an error message are printed. > The exit code will be non-zero. > The user will understand something is wrong, > and can recall the script with the option -h to get more information. > > Signed-off-by: Thomas Monjalon Acked-by: David Marchand -- David Marchand