aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Waller <[email protected]>2012-10-14 14:06:33 -0700
committerPeter Waller <[email protected]>2012-10-14 14:06:33 -0700
commit2d9e3bee171f49c28bae77ab4dffad01e643510f (patch)
tree13d0fe34cf63ac03b36a81f3c583206a12c370d1
parentMerge pull request #1 from toqueteos/master (diff)
parentPrint also flags when showing command help. (diff)
downloadgoupx-2d9e3bee171f49c28bae77ab4dffad01e643510f.tar.xz
goupx-2d9e3bee171f49c28bae77ab4dffad01e643510f.zip
Merge pull request #2 from toqueteos/master
goupx without arguments panics (small fix)
-rw-r--r--goupx.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/goupx.go b/goupx.go
index cbd5855..c4c0f6e 100644
--- a/goupx.go
+++ b/goupx.go
@@ -43,6 +43,7 @@ const usageText = "usage: goupx [args...] path\n"
// usage prints some nice output instead of panic stacktrace when an user calls goupx without arguments
func usage() {
os.Stderr.WriteString(usageText)
+ flag.PrintDefaults()
}
// The functions gethdr and writephdr are heavily influenced by code found at