From a85aa11ecd54ddf977199316000f3859ceb53921 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Fri, 10 Oct 2014 17:50:08 +0400 Subject: [PATCH] Update flag description/include it everywhere. #122 --- cmd/publish_repo.go | 1 + cmd/publish_snapshot.go | 1 + cmd/publish_switch.go | 2 +- cmd/publish_update.go | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/publish_repo.go b/cmd/publish_repo.go index 405c5970..892d7a62 100644 --- a/cmd/publish_repo.go +++ b/cmd/publish_repo.go @@ -39,6 +39,7 @@ Example: cmd.Flag.String("secret-keyring", "", "GPG secret keyring to use (instead of default)") cmd.Flag.String("passphrase", "", "GPG passhprase for the key (warning: could be insecure)") cmd.Flag.String("passphrase-file", "", "GPG passhprase-file for the key (warning: could be insecure)") + cmd.Flag.Bool("batch", false, "run GPG with detached tty") cmd.Flag.Bool("skip-signing", false, "don't sign Release files with GPG") cmd.Flag.String("origin", "", "origin name to publish") cmd.Flag.String("label", "", "label to publish") diff --git a/cmd/publish_snapshot.go b/cmd/publish_snapshot.go index aab5edc4..7dd22844 100644 --- a/cmd/publish_snapshot.go +++ b/cmd/publish_snapshot.go @@ -201,6 +201,7 @@ Example: cmd.Flag.String("secret-keyring", "", "GPG secret keyring to use (instead of default)") cmd.Flag.String("passphrase", "", "GPG passhprase for the key (warning: could be insecure)") cmd.Flag.String("passphrase-file", "", "GPG passhprase-file for the key (warning: could be insecure)") + cmd.Flag.Bool("batch", false, "run GPG with detached tty") cmd.Flag.Bool("skip-signing", false, "don't sign Release files with GPG") cmd.Flag.String("origin", "", "origin name to publish") cmd.Flag.String("label", "", "label to publish") diff --git a/cmd/publish_switch.go b/cmd/publish_switch.go index 63b1705b..848773e6 100644 --- a/cmd/publish_switch.go +++ b/cmd/publish_switch.go @@ -133,10 +133,10 @@ Example: cmd.Flag.String("secret-keyring", "", "GPG secret keyring to use (instead of default)") cmd.Flag.String("passphrase", "", "GPG passhprase for the key (warning: could be insecure)") cmd.Flag.String("passphrase-file", "", "GPG passhprase-file for the key (warning: could be insecure)") + cmd.Flag.Bool("batch", false, "run GPG with detached tty") cmd.Flag.Bool("skip-signing", false, "don't sign Release files with GPG") cmd.Flag.String("component", "", "component names to update (for multi-component publishing, separate components with commas)") cmd.Flag.Bool("force-overwrite", false, "overwrite files in package pool in case of mismatch") - cmd.Flag.Bool("batch", false, "run gpg with a detached tty") return cmd } diff --git a/cmd/publish_update.go b/cmd/publish_update.go index d450fa2d..dfe26a4a 100644 --- a/cmd/publish_update.go +++ b/cmd/publish_update.go @@ -100,9 +100,9 @@ Example: cmd.Flag.String("secret-keyring", "", "GPG secret keyring to use (instead of default)") cmd.Flag.String("passphrase", "", "GPG passhprase for the key (warning: could be insecure)") cmd.Flag.String("passphrase-file", "", "GPG passhprase-file for the key (warning: could be insecure)") + cmd.Flag.Bool("batch", false, "run GPG with detached tty") cmd.Flag.Bool("skip-signing", false, "don't sign Release files with GPG") cmd.Flag.Bool("force-overwrite", false, "overwrite files in package pool in case of mismatch") - cmd.Flag.Bool("batch", false, "run gpg with a detached tty") return cmd }