Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1utlyo-00DsBv-Vd for pgsql-bugs@arkaria.postgresql.org; Wed, 03 Sep 2025 11:48:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1utlyo-009Ak3-0c for pgsql-bugs@arkaria.postgresql.org; Wed, 03 Sep 2025 11:48:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1utlyn-009Ajv-N2 for pgsql-bugs@lists.postgresql.org; Wed, 03 Sep 2025 11:48:46 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1utlyl-000KEb-09 for pgsql-bugs@lists.postgresql.org; Wed, 03 Sep 2025 11:48:44 +0000 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-3df3be0e098so255514f8f.1 for ; Wed, 03 Sep 2025 04:48:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=saltation.com; s=google; t=1756900120; x=1757504920; darn=lists.postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=Ec4ylxTCgNRIOWS2425yjpbql6pyFRtSRkESYVVTjzw=; b=oaJk3eM4/6UyiRMYRlHaGzUZGOBYxeP6yTmG8wweK34F7TjkPo8RESy6GzdrwFIqvB MkkGCVwqnPGQa8fmufA0HE2OLqyq3ycatKfwxCP8ByGWnk4ZkMJAEYrydZ9Hvp75XdWx dzVjL4zGxhanVp8DGrAOxUoFzW2JRMjGpDmbFvCHxeRgg3atTFAS3GCauv+UVVjH++bg eYRlABHdOO+oUcbmzteAUcsf6ft7R4/GxuJq9meZdMt2MZVEKa+eVa5iqHTHJNux1OfK k1BKVjg7SYHV0uTP/l9qPUxj2ArdAkJM6xR0MnwAlRHLhOve+fjC3LoJl9+6kyQDWWr+ xMWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756900120; x=1757504920; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ec4ylxTCgNRIOWS2425yjpbql6pyFRtSRkESYVVTjzw=; b=JhXEt12aWDI5lHTr+D2LmfF++EE6ybwd2ptY215A9jkHnF7tY2SToW6FUdXg7SZweY fTlFc8LRZPnfvnexuBWe+t0IhqSsCrG3Pmiz1YKJd3gBHgkG1xfNfomj795hSWOteIez lkiV21Grb+fSwQNNyjjxZMg48MLp0B49yJP3ZHirPBWLf38XRhO1id6IIupBxobidu7z 5pIs4mthXYiuANXJPmGHa8WFHTrBbATVJY4wEd4DIrwsTBO+MWGiNrlY9s+llP0L9Gwr Nuz9/j35to1cuK4gsaJnTaT6D+Y54fA9uXyw2BCCiUM78PALsk9GHuU+W1d8KJfVYoHE B+UA== X-Gm-Message-State: AOJu0YwHYIEUUNsfgipCXGijfrj4gbL2koeSX9wLaYGNbPI1YQG0Vhsc sRwXFfgBQ8UWS6kWuLHG+3vZSuk9o0oC52arndEsrUiS937HugurE7BuZQdPVZ0PxGtUWQSdIKd YTyuF X-Gm-Gg: ASbGncuZ9Ci3/In6YE302njWAlm5WEqUQ5T2Zgl5ces34JjY/USeHsS01jj0FHCyaNo PEjM/IjYXu+1Cw25VBTInOMfqhjMsrgIZH2Rp2gWoXmyixrXk0YGXccoiVmcMbGmGjenYPyCKY0 et6V3wauRQjZHS6VO12S+aohe5gqua8g1WHaoKUoDRLGR9urbEQiP7fZF3v9nKY8nptpg0n72ht oJe0+S8EP2UdCfa7eVVaBL6jm6vtmcxd3I3408KMOzDbRCgyEm/JvsNvjpBJPM9kQWGXpPqHoLp ZSuY2FnWt9rmOpicX7ExdzHylemFFsf7990hsvrFX6JVhfBjfWxTKxu77V7sq7HvOLD2yu/4Xk8 Qz2pNO8aWIo7Xcp++ypYa6E3OrWgYXZtBrFWp/EF5MXsvyrcfAG3TM34= X-Google-Smtp-Source: AGHT+IGhtnBYQXirersz1ssRfw7TjzloDf1akHNn5QaS0Qc6rLKL9pz0UWMuYOPw8hy2xPFYP7kyLA== X-Received: by 2002:a05:6000:2311:b0:3d0:de1c:36da with SMTP id ffacd0b85a97d-3d1def64d7amr11336347f8f.46.1756900120512; Wed, 03 Sep 2025 04:48:40 -0700 (PDT) Received: from saltation.com ([2001:9e8:4e33:bc00:8441:aac8:5bdb:7278]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-45b7e7d2393sm236489575e9.3.2025.09.03.04.48.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Sep 2025 04:48:40 -0700 (PDT) Date: Wed, 3 Sep 2025 13:48:38 +0200 From: Matthias =?utf-8?Q?H=C3=B6rmann?= To: Daniel Gustafsson Cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19042: Option --help not recognized at the end of command line in pg_restore Message-ID: References: <19042-347869ae37c993f4@postgresql.org> <144DDCC5-8EB1-4AA2-91FB-36916898A86F@yesql.se> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <144DDCC5-8EB1-4AA2-91FB-36916898A86F@yesql.se> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk The 2025-09-03 13:45:15, Daniel Gustafsson wrote: > > On 3 Sep 2025, at 13:07, PG Bug reporting form wrote: > > > When calling pg_restore trying to use --help at the end to see which other > > options I might want to specify tells me that --help is an unrecognized > > option and I am supposed to run pg_restore --help for more information. > > This is the intended behaviour, --help (and --version) is parsed specially and > must be the first parameter. We do this for all command line utilities. > > -- > Daniel Gustafsson > Well, the use-case that comes up quite often for me (for any commands, not just postgres) is that I add parameters I know or remember from my last look at --help and then want to check again what else to add, for that it is useful to be able to use --help as the last parameter. -- Mit freundlichen Grüßen, Matthias Hörmann fon: +49 (0) 521 - 329647-29 fax: +49 (0) 521 - 329647-40 email: matthias.hoermann@saltation.com --------------- saltation GmbH & Co. KG | Stapenhorststraße 42b | 33615 Bielefeld Sitz Bielefeld | Amtsgericht Bielefeld HRA 15344 Persönlich haftende Gesellschafterin: saltation Beteiligungs-GmbH | Stapenhorststraße 42b | 33615 Bielefeld Sitz Bielefeld | Amtsgericht Bielefeld HRB 39339 Geschäftsführer: Daniel Brün --------------- Wir erfüllen unsere Informationspflichten gem. Artt. 13-14 DS-GVO durch Veröffentlichung auf unserer Internetseite unter https://www.saltation.com/de/datenschutzerklaerung.html oder durch Zusendung auf Ihre formlose Anfrage.