-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package main | ||
|
||
import ( | ||
"flag" | ||
"fmt" | ||
"os" | ||
) | ||
|
||
// ParseFlags parses flags provided by the user | ||
func ParseFlags() { | ||
// Setup custom help message | ||
flag.Usage = func() { | ||
fmt.Fprintf(os.Stderr, `Usage: | ||
fac | ||
Customizable variables: | ||
Behavior | ||
cont_eval evaluate commands without pressing ENTER | ||
Key bindings | ||
select_local select local version | ||
select_incoming select incoming version | ||
toggle_view toggle to horizontal | horizontal view | ||
show_up show more lines above | ||
show_down show more lines below | ||
scroll_up ... | ||
scroll_down ... | ||
edit manually edit code chunk | ||
next go to next conflict | ||
previous go to previous conflict | ||
quit ... | ||
help display help in side bar | ||
Following variables may be defined in your $HOME/.fac.yml to customize behavior | ||
`) | ||
} | ||
|
||
flag.Parse() | ||
} |