Changeset 395812569db2…
Parent 7f3c3aaa2bd2…
by Benjamin Pollack <benjamin@fogcreek.com>
Changes to one file · Browse files at 395812569db2 Showing diff from parent 7f3c3aaa2bd2 Diff from another changeset...
@@ -262,8 +262,13 @@ os.Exit(1)
}
if _, err := kiln.GitRoot(); err != nil {
- fmt.Fprintln(os.Stderr, "git-kiln must be run from within a Git repository")
- os.Exit(1)
+ if len(os.Args) == 2 && os.Args[1] == "help" {
+ showHelp()
+ return
+ } else {
+ fmt.Fprintln(os.Stderr, "git-kiln must be run from within a Git repository")
+ os.Exit(1)
+ }
}
bytesOut, err := exec.Command("git", "ls-remote", "--get-url").Output()
|
Loading...