Make usage cayley intro banner contextual
Only provide it when people run cayley without any other args.
This commit is contained in:
parent
318edfc3c7
commit
d9096d6d9f
1 changed files with 2 additions and 2 deletions
|
|
@ -64,8 +64,7 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func usage() {
|
func usage() {
|
||||||
fmt.Fprintln(os.Stderr, `Cayley is a graph store and graph query layer.
|
fmt.Fprintln(os.Stderr, `
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
cayley COMMAND [flags]
|
cayley COMMAND [flags]
|
||||||
|
|
||||||
|
|
@ -87,6 +86,7 @@ func init() {
|
||||||
func main() {
|
func main() {
|
||||||
// No command? It's time for usage.
|
// No command? It's time for usage.
|
||||||
if len(os.Args) == 1 {
|
if len(os.Args) == 1 {
|
||||||
|
fmt.Fprintln(os.Stderr, "Cayley is a graph store and graph query layer.")
|
||||||
usage()
|
usage()
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue