All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: QEMU Developers <qemu-devel@nongnu.org>
Cc: Markus Armbruster <armbru@redhat.com>
Subject: [Qemu-devel] we allow passing -machine type=foo more than once but are confused about which to use...
Date: Tue, 31 Oct 2017 18:33:06 +0000	[thread overview]
Message-ID: <CAFEAcA81ENKOYTCvhpBrXnreyy9zodk-EXqvwLZq=1w6UvkoAg@mail.gmail.com> (raw)

(cc Markus because I know how much he likes weirdnesses in our
command line parsing :-))

https://stackoverflow.com/questions/46955244/qemu-run-arm-ubuntu-unsupported-machine-type/47042282
has a user who's run into a confusing error message, because
we allow the user to pass "-machine type=foo" more than once on
the command line. When we decide which one to use, we go with the
last one on the list. However if it's not valid, when we print the
"don't recognize that machine type" message, the name we use in
the message is the *first* one on the list :-)

Maybe we should just not allow users to pass the argument
more than once...?

thanks
-- PMM

             reply	other threads:[~2017-10-31 18:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-31 18:33 Peter Maydell [this message]
2017-11-01  6:22 ` [Qemu-devel] we allow passing -machine type=foo more than once but are confused about which to use Thomas Huth
2017-11-08  7:42   ` Markus Armbruster

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='CAFEAcA81ENKOYTCvhpBrXnreyy9zodk-EXqvwLZq=1w6UvkoAg@mail.gmail.com' \
    --to=peter.maydell@linaro.org \
    --cc=armbru@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.