Skip to content

Commit

Permalink
remove debug flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoisaiah committed Aug 24, 2024
1 parent 1dcf7ac commit 476b381
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ offers several options for fine-grained control over the renaming process.`,
EnableBashCompletion: true,
Flags: []cli.Flag{
flagCSV,
flagDebug,
flagExiftoolOpts,
flagFind,
flagReplace,
Expand Down
3 changes: 0 additions & 3 deletions app/app_test/testdata/help.golden
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ OPTIONS
Allows the renaming operation to overwrite existing files.
Caution: Using this option can lead to unrecoverable data loss.

--debug
Enables debug mode, providing more detailed logging and output.

-E, --exclude
Excludes files and directories that match the provided regular expression.
This flag can be repeated to specify multiple exclude patterns.
Expand Down
6 changes: 0 additions & 6 deletions app/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ var (
Caution: Using this option can lead to unrecoverable data loss.`,
}

flagDebug = &cli.BoolFlag{
Name: "debug",
Usage: `
Enables debug mode, providing more detailed logging and output.`,
}

flagExclude = &cli.StringSliceFlag{
Name: "exclude",
Aliases: []string{"E"},
Expand Down
9 changes: 0 additions & 9 deletions app/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ func helpText(app *cli.App) string {
flagAllowOverwrites.GetUsage(),
)

flagDebugHelp := fmt.Sprintf(
`%s %s`,
pterm.Green("--", flagDebug.Name),
flagDebug.GetUsage(),
)

flagExcludeHelp := fmt.Sprintf(
`%s, %s %s`,
pterm.Green("-", flagExclude.Aliases[0]),
Expand Down Expand Up @@ -285,8 +279,6 @@ Project repository: https://github.com/ayoisaiah/f2
%s
%s
%s
%s
Expand All @@ -309,7 +301,6 @@ Project repository: https://github.com/ayoisaiah/f2
flagUndoHelp,
pterm.Bold.Sprintf("OPTIONS"),
flagAllowOverwritesHelp,
flagDebugHelp,
flagExcludeHelp,
flagExcludeDirHelp,
flagExiftoolOptsHelp,
Expand Down

0 comments on commit 476b381

Please sign in to comment.