From d9096d6d9f87a8b55506ed3866f8b68fcfa1f82b Mon Sep 17 00:00:00 2001 From: kortschak Date: Fri, 22 Aug 2014 16:40:22 +0930 Subject: [PATCH] Make usage cayley intro banner contextual Only provide it when people run cayley without any other args. --- cayley.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cayley.go b/cayley.go index a9879ec..d3f0cca 100644 --- a/cayley.go +++ b/cayley.go @@ -64,8 +64,7 @@ var ( ) func usage() { - fmt.Fprintln(os.Stderr, `Cayley is a graph store and graph query layer. - + fmt.Fprintln(os.Stderr, ` Usage: cayley COMMAND [flags] @@ -87,6 +86,7 @@ func init() { func main() { // No command? It's time for usage. if len(os.Args) == 1 { + fmt.Fprintln(os.Stderr, "Cayley is a graph store and graph query layer.") usage() os.Exit(1) }