public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Stephen Gallagher <sgallagh@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/fedora-packager] epel10.2: Add help documentation about $FKINIT_OTP variable
Date: Thu, 25 Jun 2026 13:20:52 GMT	[thread overview]
Message-ID: <178239365206.1.771854245434117391.rpms-fedora-packager-f818d36ccd8a@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/fedora-packager
            Branch : epel10.2
            Commit : f818d36ccd8afe074520f4bd358792558cce16a5
            Author : Stephen Gallagher <sgallagh@redhat.com>
            Date   : 2025-02-06T14:39:00-05:00
            Stats  : +5/-3 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/fedora-packager/c/f818d36ccd8afe074520f4bd358792558cce16a5?branch=epel10.2

            Log:
            Add help documentation about $FKINIT_OTP variable

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>

---
diff --git a/fkinit b/fkinit
index 077678d..d2add1a 100755
--- a/fkinit
+++ b/fkinit
@@ -3,7 +3,7 @@
 # Created by argbash-init v2.10.0
 # ARG_OPTIONAL_SINGLE([user],[u],[Fedora account name],[$USER])
 # ARG_OPTIONAL_BOOLEAN([staging],[],[Use the staging infrastructure])
-# ARG_HELP([Acquire a Kerberos ticket-granting ticket for Fedora])
+# ARG_HELP([Acquire a Kerberos ticket-granting ticket for Fedora],[If the environment variable \$FKINIT_OTP is set, it will be read for the one-time password instead of prompting for it.])
 # ARGBASH_GO()
 # needed because of Argbash --> m4_ignore([
 ### START OF CODE GENERATED BY Argbash v2.10.0 one line above ###
@@ -37,8 +37,9 @@ print_help()
 	printf '%s\n' "Acquire a Kerberos ticket-granting ticket for Fedora"
 	printf 'Usage: %s [-u|--user <arg>] [--(no-)staging] [-h|--help]\n' "$0"
 	printf '\t%s\n' "-u, --user: Fedora account name (default: '$USER')"
-	printf '\t%s\n' "--staging: Use the staging infrastructure (off by default)"
+	printf '\t%s\n' "--staging, --no-staging: Use the staging infrastructure (off by default)"
 	printf '\t%s\n' "-h, --help: Prints help"
+	printf '\n%s\n' "If the environment variable \$FKINIT_OTP is set, it will be read for the one-time password instead of prompting for it."
 }
 
 
@@ -59,8 +60,9 @@ parse_commandline()
 			-u*)
 				_arg_user="${_key##-u}"
 				;;
-			--staging)
+			--no-staging|--staging)
 				_arg_staging="on"
+				test "${1:0:5}" = "--no-" && _arg_staging="off"
 				;;
 			-h|--help)
 				print_help

                 reply	other threads:[~2026-06-25 13:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=178239365206.1.771854245434117391.rpms-fedora-packager-f818d36ccd8a@fedoraproject.org \
    --to=sgallagh@redhat.com \
    --cc=git-commits@fedoraproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox