From 092062a8aaa579b1e3907b92521010da98aab7bb Mon Sep 17 00:00:00 2001 From: Shunsuke Kirino Date: Thu, 23 Apr 2026 13:27:55 +0900 Subject: [PATCH] Obtain `--indent` global flag value and pass it to store configs Signed-off-by: Shunsuke Kirino --- cmd/sops/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/sops/main.go b/cmd/sops/main.go index fb41be60a..330c3bc8e 100644 --- a/cmd/sops/main.go +++ b/cmd/sops/main.go @@ -2388,8 +2388,8 @@ func outputStore(context *cli.Context, path string) (common.Store, error) { if err != nil { return nil, err } - if context.IsSet("indent") { - indent := context.Int("indent") + if context.GlobalIsSet("indent") { + indent := context.GlobalInt("indent") storesConf.YAML.Indent = indent storesConf.JSON.Indent = indent storesConf.JSONBinary.Indent = indent