X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type; q=dns; s=default; b=AByZ Twd5nUVkL4dgJ9gvF7Lx27Rb174fhJ729zOuaawOMMpNQ0MU6dJAkzw3Ec8Eom1+ MFzfm1sBR/kXiH/UATjlNSZOE66ke/FS7Fsd/cpGiI11S59hbBv9drkcP4tNTecc 9WThOVbkyWZZIA/Ws/kb5uTqqwKuKnYTfrITKPA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type; s=default; bh=ZZPXBKRfe2 1zEadts2FnBNGthZU=; b=vfs/VJ2U91UCXTuc4kTzKaql/0Y3CD6V3Q1PoR7+Fs w+Zz7REZGT6DNPG+LztrhUOrkz7SO8HGZtsL1ncL9MmJLLPWsl0al/GxYVhhvlfJ a6IkhFxLTlJWHUE5N7SAvy6XyjHlU6bYo0ewebwW2sbk9VkemT2LhdPFUETCS8jA A= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=grimes, Grimes, Hx-languages-length:955, Gordon X-HELO: mx1.redhat.com Subject: Re: regtool 2.11.1 need a way to specify leading "-" in values To: cygwin AT cygwin DOT com, Gordon_Grimes AT symantec DOT com References: From: Eric Blake Openpgp: preference=signencrypt Message-ID: <668589bf-266f-c995-6e8c-61af56a8a28a@redhat.com> Date: Tue, 22 Jan 2019 17:21:01 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ok8xgwxtQea3dfRARE83V6qmHT8zercgp" X-IsSubscribed: yes --ok8xgwxtQea3dfRARE83V6qmHT8zercgp Content-Type: multipart/mixed; boundary="IELPGNZxvC3hzcgQWSLQ1aicNxanwhaMm"; protected-headers="v1" From: Eric Blake To: cygwin AT cygwin DOT com, Gordon_Grimes AT symantec DOT com Message-ID: <668589bf-266f-c995-6e8c-61af56a8a28a AT redhat DOT com> Subject: Re: regtool 2.11.1 need a way to specify leading "-" in values References: In-Reply-To: --IELPGNZxvC3hzcgQWSLQ1aicNxanwhaMm Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 1/22/19 5:12 PM, Gordon Grimes wrote: > I believe there is no way to specify values with leading "-" in regtool. = I expect the same applies to keys. An "end of switch processing" switch w= ould be useful, forcing 'regtool' to interpret all remaining arguments lite= rally. Fortunately, you are mistaken. regtool uses getopt_long(), and therefore, like all other programs that use this, automatically inherits the POSIX rule that '--' is the marker for "end of switch processing". >=20 > Example: > % regtool -s set '\HKCU\Environment\MAVEN_OPTS' "-Xms512m -Xmx3072m -Dco= m.sun.management.jmxremote" > regtool: unknown option -- X > Try `regtool --help' for more information. Try: regtool -s set '\HKCU\Environment\MAVEN_OPS' -- "-Xms512m -Xmx3072m -Dcom.sun.management.jmxremote" --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org --IELPGNZxvC3hzcgQWSLQ1aicNxanwhaMm-- --ok8xgwxtQea3dfRARE83V6qmHT8zercgp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEccLMIrHEYCkn0vOqp6FrSiUnQ2oFAlxHpV0ACgkQp6FrSiUn Q2oTxggAnyhqf01I00gr3GnEFX0Sjjf5Pgsqvm/AupEED9AU3dfitDd5fudsVHA+ hrzWEPyvRZyamnCNbuj76ijjblKIsXQ8bHoO9+sv/xhOPL1Y4aW76jdWzmXNQlPl baJG9Wh9lmn4MM5uo/NVK5i+IwSF38DVgSPLnm+0SOb9ppGA4jFGqgkDJ8mqYO5N qZxpA8HP+BzA4ZkPKBu5jVbX3ItYIwbsp6JuLelIMOIqjEKj95OFcJXrcs6FPD4Q ew7JKaQ9338rdUWI7svGqWPnK3Vl1IZiu0sehcfuX8+cfudgWSdnbTFYAflFfOJz Um3XUJ8C/REb0hkCOmUs7rzjN7YKTA== =lGkG -----END PGP SIGNATURE----- --ok8xgwxtQea3dfRARE83V6qmHT8zercgp--