From 8722b894a6fb86945b96e5c3b2cc778853e21d17 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 4 Dec 2021 12:34:29 +0100 Subject: MANPAGE: -extpass: document dash duplication bug Closes https://github.com/rfjakob/gocryptfs/issues/621 --- cli_args.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli_args.go') diff --git a/cli_args.go b/cli_args.go index 6b97744..781dc5c 100644 --- a/cli_args.go +++ b/cli_args.go @@ -114,6 +114,10 @@ func prefixOArgs(osArgs []string) ([]string, error) { // into "--debug" (spf13/pflag style). // gocryptfs v2.1 switched from `flag` to `pflag`, but we obviously want to stay // cli-compatible, and this is the hack to do it. +// +// BUG: In `-extpass -X`, the `-X` gets transformed `--X`. +// See "Dash duplication" in the man page and +// https://github.com/rfjakob/gocryptfs/issues/621 . func convertToDoubleDash(osArgs []string) (out []string) { out = append(out, osArgs...) for i, v := range out { -- cgit v1.2.3