diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-08 19:46:21 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-08 19:46:21 +1000 |
commit | c9653337569f6a3ffab11733a86667a42a9e6bf3 (patch) | |
tree | 27f7bb03d89a8142aa88ac5910b2501313efd887 /main.go | |
parent | 3839719154f885a77ffeb3957f86cf367b79d3a7 (diff) |
"opening and editing"
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -19,7 +19,6 @@ var ( ErrSubprocess = errors.New("running subprocess") subprocess *exec.Cmd startTime time.Time - debugging bool // Rev - Git Revision Rev string @@ -27,9 +26,9 @@ var ( // Version - Version number Version = "unversioned" - builddate string - debuggingPointer = flag.Bool("debug", false, "a boolean") - versionFlag = flag.Bool("v", false, "Print the current version") + builddate string + debuggingFlag = flag.Bool("debug", false, "a boolean") + versionFlag = flag.Bool("v", false, "Print the current version") ) func homeDirectory() string { @@ -53,7 +52,7 @@ func commandLog(objects ...interface{}) { } func localLog(colour color.Attribute, path string, objects ...interface{}) { - if !debugging { + if !*debuggingFlag { return } f, _ := os.OpenFile(path, os.O_APPEND|os.O_WRONLY, 0644) @@ -75,7 +74,6 @@ func navigateToRepoRootDirectory() { func main() { startTime = time.Now() - debugging = *debuggingPointer devLog("\n\n\n\n\n\n\n\n\n\n") flag.Parse() if *versionFlag { |