From 40c94fe168ff5c0cf0d09a1dc081ebd5e4995a01 Mon Sep 17 00:00:00 2001 From: user Date: Tue, 10 Feb 2026 18:36:50 -0800 Subject: [PATCH] Fix CLI flag naming to use kebab-case as primary names Change --FollowSymLinks to --follow-symlinks (-L) and --IncludeDotfiles to --include-dotfiles as primary flag names. --- internal/cli/freshen.go | 4 ++-- internal/cli/gen.go | 4 ++-- internal/cli/mfer.go | 20 ++++++++++---------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/internal/cli/freshen.go b/internal/cli/freshen.go index 61f7a86..e63218d 100644 --- a/internal/cli/freshen.go +++ b/internal/cli/freshen.go @@ -41,8 +41,8 @@ func (mfa *CLIApp) freshenManifestOperation(ctx *cli.Context) error { basePath := ctx.String("base") showProgress := ctx.Bool("progress") - includeDotfiles := ctx.Bool("IncludeDotfiles") - followSymlinks := ctx.Bool("FollowSymLinks") + includeDotfiles := ctx.Bool("include-dotfiles") + followSymlinks := ctx.Bool("follow-symlinks") // Find manifest file var manifestPath string diff --git a/internal/cli/gen.go b/internal/cli/gen.go index 6908c0f..1343985 100644 --- a/internal/cli/gen.go +++ b/internal/cli/gen.go @@ -20,8 +20,8 @@ func (mfa *CLIApp) generateManifestOperation(ctx *cli.Context) error { log.Debug("generateManifestOperation()") opts := &mfer.ScannerOptions{ - IncludeDotfiles: ctx.Bool("IncludeDotfiles"), - FollowSymLinks: ctx.Bool("FollowSymLinks"), + IncludeDotfiles: ctx.Bool("include-dotfiles"), + FollowSymLinks: ctx.Bool("follow-symlinks"), Fs: mfa.Fs, } diff --git a/internal/cli/mfer.go b/internal/cli/mfer.go index e99dd7e..78f5735 100644 --- a/internal/cli/mfer.go +++ b/internal/cli/mfer.go @@ -123,14 +123,14 @@ func (mfa *CLIApp) run(args []string) { }, Flags: append(commonFlags(), &cli.BoolFlag{ - Name: "FollowSymLinks", - Aliases: []string{"follow-symlinks"}, + Name: "follow-symlinks", + Aliases: []string{"L"}, Usage: "Resolve encountered symlinks", }, &cli.BoolFlag{ - Name: "IncludeDotfiles", - Aliases: []string{"include-dotfiles"}, - Usage: "Include dot (hidden) files (excluded by default)", + Name: "include-dotfiles", + + Usage: "Include dot (hidden) files (excluded by default)", }, &cli.StringFlag{ Name: "output", @@ -206,14 +206,14 @@ func (mfa *CLIApp) run(args []string) { Usage: "Base directory for resolving relative paths", }, &cli.BoolFlag{ - Name: "FollowSymLinks", - Aliases: []string{"follow-symlinks"}, + Name: "follow-symlinks", + Aliases: []string{"L"}, Usage: "Resolve encountered symlinks", }, &cli.BoolFlag{ - Name: "IncludeDotfiles", - Aliases: []string{"include-dotfiles"}, - Usage: "Include dot (hidden) files (excluded by default)", + Name: "include-dotfiles", + + Usage: "Include dot (hidden) files (excluded by default)", }, &cli.BoolFlag{ Name: "progress",