X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id CA9BBDC009D for ; Sun, 29 Jun 2014 02:41:36 +0000 (UTC) Received: by mail-pa0-f53.google.com with SMTP id ey11so6634662pad.40 for ; Sat, 28 Jun 2014 19:41:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=thX3i9zMrZjtR+MfPI3lHZzJ8zIQUcXmhd/IKG/S6L0=; b=zB2dkcnuJtvBrZFP2Jc6W8hRStGscrY3420xnl+bb/JKyKNQmaZ0FFNCSpz4h3zRCv YqBb64z5BDBCAdLmTrGyESMZIMivYE0lEGwkcqKwnVSqM9pM5LWJV1ESD+a56x3PWCz5 Ce9ax6xy8nWrP08klBA8XcAE8DkEq9RTIPPQjM5oK2SBSnlBCS27U8UeYukWYcJYd2zf JLUg093+aepyLGsNc9p6by9wI8vadcaL4PNJAUmRLe1dpH4PXjK+nN51CH5gJDrWSgbw 6e9LhxCJdKHU1YD0eYOn9PZIezI3f/2/Zkn9z1j8fF+9OeY18Ptstq4abo5/J6DMPJeL 5bHg== X-Received: by 10.68.239.99 with SMTP id vr3mr42665343pbc.158.1404009695606; Sat, 28 Jun 2014 19:41:35 -0700 (PDT) Received: from localhost.localdomain ([50.0.227.219]) by mx.google.com with ESMTPSA id qk9sm76152761pac.16.2014.06.28.19.41.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 28 Jun 2014 19:41:35 -0700 (PDT) From: Isaac Dunham To: alpine-devel@lists.alpinelinux.org Cc: Isaac Dunham Subject: [alpine-devel] [PATCH] Add "-s" short option for "--simulate" Date: Sat, 28 Jun 2014 19:39:51 -0700 Message-Id: <1404009591-1984-1-git-send-email-ibid.ag@gmail.com> X-Mailer: git-send-email 2.0.1 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Typing the long option gets old. --- src/apk.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/apk.c b/src/apk.c index 970bbb1..8e3ae7c 100644 --- a/src/apk.c +++ b/src/apk.c @@ -50,6 +50,8 @@ static struct apk_option generic_options[] = { { 'V', "version", "Print program version and exit" }, { 'f', "force", "Do what was asked even if it looks dangerous" }, { 'U', "update-cache", "Update the repository cache" }, + { 's', "simulate", "Show what would be done without actually " + "doing it" }, { 0x101, "progress", "Show a progress bar" }, { 0x10f, "progress-fd", "Write progress to fd", required_argument, "FD" }, { 0x110, "no-progress", "Disable progress bar even for TTYs" }, @@ -59,8 +61,6 @@ static struct apk_option generic_options[] = { "package removal" }, { 0x103, "allow-untrusted", "Blindly install packages with untrusted " "signatures or no signature at all" }, - { 0x104, "simulate", "Show what would be done without actually " - "doing it" }, { 0x105, "wait", "Wait for TIME seconds to get an exclusive " "repository lock before failing", required_argument, "TIME" }, @@ -409,6 +409,9 @@ int main(int argc, char **argv) case 'U': apk_flags |= APK_UPDATE_CACHE; break; + case 's': + apk_flags |= APK_SIMULATE; + break; case 0x101: apk_flags |= APK_PROGRESS; break; @@ -424,9 +427,6 @@ int main(int argc, char **argv) case 0x103: apk_flags |= APK_ALLOW_UNTRUSTED; break; - case 0x104: - apk_flags |= APK_SIMULATE; - break; case 0x106: apk_flags |= APK_PURGE; break; -- 2.0.1 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---