From: Damien Lespiau Subject: Re: [PATCH i-g-t] testdisplay: Allow getopt to print error messages Date: Fri, 11 Oct 2013 13:17:14 +0100 Message-ID: <20131011121714.GA26480@strange.amr.corp.intel.com> References: <1381404199-10820-1-git-send-email-thomas.wood@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga14.intel.com (mga14.intel.com [143.182.124.37]) by gabe.freedesktop.org (Postfix) with ESMTP id 35767E6B2E for ; Fri, 11 Oct 2013 05:18:02 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1381404199-10820-1-git-send-email-thomas.wood@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Thomas Wood Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, Oct 10, 2013 at 12:23:19PM +0100, Thomas Wood wrote: > By not assigning opterr, getopt will print its own error message that > includes information about whether an option is unknown or just requires > an additional argument. > > Signed-off-by: Thomas Wood Look good to me, pushed. Thanks for the patch. -- Damien