summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go27
1 files changed, 27 insertions, 0 deletions
diff --git a/main.go b/main.go
index c51f185..05f144e 100644
--- a/main.go
+++ b/main.go
@@ -197,6 +197,11 @@ func main() {
okExit("")
}
+ if argv.Help != nil {
+ doHelp()
+ okExit("")
+ }
+
// todo: redo this logic using forgepb
if configSave {
me.forge.ConfigSave()
@@ -220,3 +225,25 @@ func main() {
doGui()
okExit("")
}
+
+// keep this small
+func doHelp() {
+ log.Info("")
+ log.Info("forge -h : to see the available options")
+ log.Info("forge --bash : will create a bash autocomplete file")
+ log.Info("forge : with no arguements, forge tries to load a GO GUI plugin")
+ log.Info(" : there are two GUI plugins. terminal & GTK")
+ log.Info("")
+ log.Info("forge list : shows a table of all your repos")
+ log.Info("forge checkout : checks out all your repos to the same branch")
+ log.Info(" : the default is your user branch")
+ log.Info("forge clean : reverts all repos to the master branch")
+ log.Info("forge dirty : show all repos git reports as dirty")
+ log.Info("")
+ okExit("")
+}
+
+func doHelpPatches() {
+ log.Info("TODO: ?")
+ okExit("")
+}