X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id C4DB9DC01DF for ; Sat, 5 Jul 2014 03:16:21 +0000 (UTC) Received: by mail-pa0-f51.google.com with SMTP id hz1so2668560pad.38 for ; Fri, 04 Jul 2014 20:16:21 -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:in-reply-to:references; bh=wcLjeSJkBimu4TW4e6pdlvPVpxjI8SnjfcKTvfYePsk=; b=NcjGd7kw/H7S+XsiiKc2q5dE+FDkGKr+j62Gm+RhBUtBOBqj9M0m8r3nlnajE7oZUT N3SZy2+6w49Rv1sm6oh7GDnJ+BrQPwEkeSZIdtlhC+IjCIIcKrtipAeo1ZCEcGM+L98+ 5cjHQyIuZap+PcobJMWmJOjR2XlPjGCda2Tutp9MSd1qvuwPW4gjwQxHiXDJWtSznX3t MMJxdUsVg1D9UGtg3OaT44DQt7yNLs/BHoemuLhkbmN9LoXR6j4ts8puw18L6WLW/I5c GsCCbvDpYtx2BOjvQ32/IhRluL5M8DoforZIn53BzraSQwHfnQztoD1z4aGEJZBbW2L8 544Q== X-Received: by 10.68.189.105 with SMTP id gh9mr14372176pbc.42.1404530179086; Fri, 04 Jul 2014 20:16:19 -0700 (PDT) Received: from localhost.localdomain ([50.0.227.219]) by mx.google.com with ESMTPSA id fz3sm10845060pdb.78.2014.07.04.20.16.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Jul 2014 20:16:18 -0700 (PDT) From: Isaac Dunham To: alpine-devel@lists.alpinelinux.org Cc: Isaac Dunham Subject: [alpine-devel] [PATCH] apk-tools: Add "-S" short option for "--simulate" Date: Fri, 4 Jul 2014 20:16:02 -0700 Message-Id: <1404530162-6387-1-git-send-email-ibid.ag@gmail.com> X-Mailer: git-send-email 2.0.1 In-Reply-To: <20140702021030.2e1623c4@ncopa-laptop> References: <20140702021030.2e1623c4@ncopa-laptop> 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..fd752dd 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 ---