Skip to content

Commit

Permalink
Rename the long version of the format flag
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Dec 17, 2024
1 parent 9bac2b2 commit c7df484
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions v2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func main() {
ollamaTabCompletion bool
catFlag bool
batFlag bool
fmtFlag bool
formatFlag bool
buildFlag bool
noApproxMatchFlag bool
)
Expand All @@ -92,7 +92,7 @@ func main() {
pflag.BoolVarP(&ollamaTabCompletion, "ollama", "o", env.Bool("ORBITON_OLLAMA"), "use Ollama for tab completion")
pflag.BoolVarP(&catFlag, "list", "t", false, "List the file with colors instead of editing it")
pflag.BoolVarP(&batFlag, "bat", "B", false, "Cat the file with colors instead of editing it, using bat")
pflag.BoolVarP(&fmtFlag, "fmt", "F", false, "Try to build the file instead of editing it")
pflag.BoolVarP(&formatFlag, "format", "F", false, "Try to build the file instead of editing it")
pflag.BoolVarP(&buildFlag, "build", "b", false, "Try to build the file instead of editing it")
pflag.BoolVarP(&noApproxMatchFlag, "noapprox", "x", false, "Disable approximate filename matching")

Expand Down Expand Up @@ -442,7 +442,7 @@ func main() {
defer tty.Close()

// Run the main editor loop
userMessage, stopParent, clearOnQuit, err := Loop(tty, fnord, lineNumber, colNumber, forceFlag, theme, syntaxHighlight, monitorAndReadOnlyFlag, nanoMode, createDirectoriesFlag, quickHelpFlag, fmtFlag)
userMessage, stopParent, clearOnQuit, err := Loop(tty, fnord, lineNumber, colNumber, forceFlag, theme, syntaxHighlight, monitorAndReadOnlyFlag, nanoMode, createDirectoriesFlag, quickHelpFlag, formatFlag)

// SIGQUIT the parent PID. Useful if being opened repeatedly by a find command.
if stopParent {
Expand Down

0 comments on commit c7df484

Please sign in to comment.