From: Eric Blake <eblake@redhat.com>
To: cygwin@cygwin.com, Gordon_Grimes@symantec.com
Subject: Re: regtool 2.11.1 need a way to specify leading "-" in values
Date: Tue, 22 Jan 2019 23:21:00 -0000 [thread overview]
Message-ID: <668589bf-266f-c995-6e8c-61af56a8a28a@redhat.com> (raw)
In-Reply-To: <BN6PR16MB15549754495C4B7BA433E198E8980@BN6PR16MB1554.namprd16.prod.outlook.com>
[-- Attachment #1.1: Type: text/plain, Size: 932 bytes --]
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 would be useful, forcing 'regtool' to interpret all remaining arguments literally.
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".
>
> Example:
> % regtool -s set '\HKCU\Environment\MAVEN_OPTS' "-Xms512m -Xmx3072m -Dcom.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"
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2019-01-22 23:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-22 23:12 Gordon Grimes
2019-01-22 23:21 ` Eric Blake [this message]
2019-01-23 0:05 ` Gordon Grimes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=668589bf-266f-c995-6e8c-61af56a8a28a@redhat.com \
--to=eblake@redhat.com \
--cc=Gordon_Grimes@symantec.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).