From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iwQbD-0006N8-1S for barebox@lists.infradead.org; Tue, 28 Jan 2020 13:08:12 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Tue, 28 Jan 2020 14:07:59 +0100 Message-Id: <20200128130801.24890-2-u.kleine-koenig@pengutronix.de> In-Reply-To: <20200128130801.24890-1-u.kleine-koenig@pengutronix.de> References: <20200128130801.24890-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/3] commands/test: Bail out on incomplete command line options To: barebox@lists.infradead.org VGhpcyBtYWtlcyB0ZXN0IGVtaXQgYW4gZXJyb3IgKGFuZCBmYWlsKSBvbiBlLmcuCgoJdGVzdCAt ZgoKYW5kIGFsc28gb24gdW5pbXBsZW1lbnRlZCBvcHRpb25zIGxpa2UKCgl0ZXN0IC1jIC9kZXYv bnVsbAoKLgoKU2lnbmVkLW9mZi1ieTogVXdlIEtsZWluZS1Lw7ZuaWcgPHUua2xlaW5lLWtvZW5p Z0BwZW5ndXRyb25peC5kZT4KLS0tCiBjb21tYW5kcy90ZXN0LmMgfCA1ICsrKysrCiAxIGZpbGUg Y2hhbmdlZCwgNSBpbnNlcnRpb25zKCspCgpkaWZmIC0tZ2l0IGEvY29tbWFuZHMvdGVzdC5jIGIv Y29tbWFuZHMvdGVzdC5jCmluZGV4IGM0ZjQ5Mzg2MGYxNC4uYWIxMDhmYzg0NWQ1IDEwMDY0NAot LS0gYS9jb21tYW5kcy90ZXN0LmMKKysrIGIvY29tbWFuZHMvdGVzdC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