aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos <[email protected]>2012-10-14 20:43:10 +0300
committerCarlos <[email protected]>2012-10-14 20:43:10 +0300
commit7cd341481467c68c7fcf1fd2d13b639442cc25d8 (patch)
tree13d0fe34cf63ac03b36a81f3c583206a12c370d1
parentUpdate goupx.go (diff)
downloadarchived-goupx-7cd341481467c68c7fcf1fd2d13b639442cc25d8.tar.xz
archived-goupx-7cd341481467c68c7fcf1fd2d13b639442cc25d8.zip
Print also flags when showing command help.
-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