From: Ian Jackson <ian.jackson@eu.citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Subject: [OSSTEST PATCH 1/6] cr-publish-flight-logs: Make a proper option parser
Date: Mon, 10 Aug 2020 12:20:42 +0100 [thread overview]
Message-ID: <20200810112047.30285-1-ian.jackson@eu.citrix.com> (raw)
I was going to add another option but changed my mind. But, let's
keep this patch anyway.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
cr-publish-flight-logs | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/cr-publish-flight-logs b/cr-publish-flight-logs
index faae7e0e..717cb957 100755
--- a/cr-publish-flight-logs
+++ b/cr-publish-flight-logs
@@ -28,9 +28,14 @@ our %c;
readglobalconfig();
my $push_harness = 0;
-if (@ARGV && $ARGV[0] =~ m{^--push-harness(?:-try)?$}) {
- $push_harness = $&;
- shift @ARGV;
+while (@ARGV && $ARGV[0] =~ m{^-}) {
+ $_ = shift @ARGV;
+ last if $_ eq '--';
+ if (m{^--push-harness(?:-try)?$}) {
+ $push_harness = $&;
+ } else {
+ die "unknown option \`$_' ?";
+ }
}
my $flight= shift @ARGV // '';
--
2.20.1
next reply other threads:[~2020-08-10 11:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-10 11:20 Ian Jackson [this message]
2020-08-10 11:20 ` [OSSTEST PATCH 2/6] timing traces: cr-publish-flight-logs: Report more progress Ian Jackson
2020-08-10 11:20 ` [OSSTEST PATCH 3/6] timing traces: cr-daily-branch: Add more calls to date >&2 Ian Jackson
2020-08-10 11:20 ` [OSSTEST PATCH 4/6] timing traces: sg-check-tested: Add prints of (show_abs_time time) Ian Jackson
2020-08-10 11:20 ` [OSSTEST PATCH 5/6] timing traces: Executive: Provide processing timestamp facilities Ian Jackson
2020-08-10 11:20 ` [OSSTEST PATCH 6/6] timing traces: cri-args-hostlists: Add some timestamps Ian Jackson
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=20200810112047.30285-1-ian.jackson@eu.citrix.com \
--to=ian.jackson@eu.citrix.com \
--cc=xen-devel@lists.xenproject.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.