summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.go b/main.go
index e8c092da2..758a0ee50 100644
--- a/main.go
+++ b/main.go
@@ -16,6 +16,7 @@ var (
version = "unversioned"
date string
+ configFlag = flag.Bool("config", false, "Print the current default config")
debuggingFlag = flag.Bool("debug", false, "a boolean")
versionFlag = flag.Bool("v", false, "Print the current version")
)
@@ -31,6 +32,10 @@ func main() {
fmt.Printf("commit=%s, build date=%s, version=%s, os=%s, arch=%s\n", commit, date, version, runtime.GOOS, runtime.GOARCH)
os.Exit(0)
}
+ if *configFlag {
+ fmt.Printf("%s\n", config.GetDefaultConfig())
+ os.Exit(0)
+ }
appConfig, err := config.NewAppConfig("lazygit", version, commit, date, debuggingFlag)
if err != nil {
panic(err)