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.
This commit is contained in:
parent
79e6baa0ca
commit
40c94fe168
@ -41,8 +41,8 @@ func (mfa *CLIApp) freshenManifestOperation(ctx *cli.Context) error {
|
|||||||
|
|
||||||
basePath := ctx.String("base")
|
basePath := ctx.String("base")
|
||||||
showProgress := ctx.Bool("progress")
|
showProgress := ctx.Bool("progress")
|
||||||
includeDotfiles := ctx.Bool("IncludeDotfiles")
|
includeDotfiles := ctx.Bool("include-dotfiles")
|
||||||
followSymlinks := ctx.Bool("FollowSymLinks")
|
followSymlinks := ctx.Bool("follow-symlinks")
|
||||||
|
|
||||||
// Find manifest file
|
// Find manifest file
|
||||||
var manifestPath string
|
var manifestPath string
|
||||||
|
|||||||
@ -20,8 +20,8 @@ func (mfa *CLIApp) generateManifestOperation(ctx *cli.Context) error {
|
|||||||
log.Debug("generateManifestOperation()")
|
log.Debug("generateManifestOperation()")
|
||||||
|
|
||||||
opts := &mfer.ScannerOptions{
|
opts := &mfer.ScannerOptions{
|
||||||
IncludeDotfiles: ctx.Bool("IncludeDotfiles"),
|
IncludeDotfiles: ctx.Bool("include-dotfiles"),
|
||||||
FollowSymLinks: ctx.Bool("FollowSymLinks"),
|
FollowSymLinks: ctx.Bool("follow-symlinks"),
|
||||||
Fs: mfa.Fs,
|
Fs: mfa.Fs,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -123,14 +123,14 @@ func (mfa *CLIApp) run(args []string) {
|
|||||||
},
|
},
|
||||||
Flags: append(commonFlags(),
|
Flags: append(commonFlags(),
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "FollowSymLinks",
|
Name: "follow-symlinks",
|
||||||
Aliases: []string{"follow-symlinks"},
|
Aliases: []string{"L"},
|
||||||
Usage: "Resolve encountered symlinks",
|
Usage: "Resolve encountered symlinks",
|
||||||
},
|
},
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "IncludeDotfiles",
|
Name: "include-dotfiles",
|
||||||
Aliases: []string{"include-dotfiles"},
|
|
||||||
Usage: "Include dot (hidden) files (excluded by default)",
|
Usage: "Include dot (hidden) files (excluded by default)",
|
||||||
},
|
},
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "output",
|
Name: "output",
|
||||||
@ -206,14 +206,14 @@ func (mfa *CLIApp) run(args []string) {
|
|||||||
Usage: "Base directory for resolving relative paths",
|
Usage: "Base directory for resolving relative paths",
|
||||||
},
|
},
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "FollowSymLinks",
|
Name: "follow-symlinks",
|
||||||
Aliases: []string{"follow-symlinks"},
|
Aliases: []string{"L"},
|
||||||
Usage: "Resolve encountered symlinks",
|
Usage: "Resolve encountered symlinks",
|
||||||
},
|
},
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "IncludeDotfiles",
|
Name: "include-dotfiles",
|
||||||
Aliases: []string{"include-dotfiles"},
|
|
||||||
Usage: "Include dot (hidden) files (excluded by default)",
|
Usage: "Include dot (hidden) files (excluded by default)",
|
||||||
},
|
},
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "progress",
|
Name: "progress",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user