From 26c94eb3db62ec6eebbf8d22c11afe691d9520c4 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Sun, 13 Sep 2026 02:31:32 +0200 Subject: krino: release 0.0.1 — man pages, install, examples, cross and release, README, changelog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also: undo removes the directories its run created; a hardlink is never a duplicate of its own other name; a flag written before "undo" is honoured; --version prints no leading v. Duplicate conditions with different scopes not sharing an original is documented as a known limitation. --- cmd/krino/undo.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cmd/krino/undo.go') diff --git a/cmd/krino/undo.go b/cmd/krino/undo.go index 7ffe428..c773f9a 100644 --- a/cmd/krino/undo.go +++ b/cmd/krino/undo.go @@ -41,8 +41,10 @@ func init() { commands["undo"] = cmdUndo } // approval here is keyed by index rather than by name. func cmdUndo(g *globals, args []string, stdout, stderr io.Writer) int { fs := flagSet("undo", g) - fs.BoolVar(&g.yes, "y", false, "") - fs.BoolVar(&g.dry, "n", false, "") + // The defaults are the values run() already parsed, so -y or -n written + // before "undo" survives registering them again here. + fs.BoolVar(&g.yes, "y", g.yes, "") + fs.BoolVar(&g.dry, "n", g.dry, "") if code, ok := parse(fs, args, stdout, stderr); !ok { return code } -- cgit v1.3