This repository was archived by the owner on Jul 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +28
-37
lines changed Expand file tree Collapse file tree 2 files changed +28
-37
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package main
2
2
3
3
import (
4
4
"os"
5
+ "path"
5
6
6
7
cliApp "github.com/docker/libcompose/cli/app"
7
8
"github.com/docker/libcompose/cli/command"
@@ -13,6 +14,33 @@ import (
13
14
func main () {
14
15
factory := & dockerApp.ProjectFactory {}
15
16
17
+ cli .AppHelpTemplate = `Usage: {{.Name}} {{if .Flags}}[OPTIONS] {{end}}COMMAND [arg...]
18
+
19
+ {{.Usage}}
20
+
21
+ Version: {{.Version}}{{if or .Author .Email}}
22
+
23
+ Author:{{if .Author}}
24
+ {{.Author}}{{if .Email}} - <{{.Email}}>{{end}}{{else}}
25
+ {{.Email}}{{end}}{{end}}
26
+ {{if .Flags}}
27
+ Options:
28
+ {{range .Flags}}{{.}}
29
+ {{end}}{{end}}
30
+ Commands:
31
+ {{range .Commands}}{{.Name}}{{with .ShortName}}, {{.}}{{end}}{{ "\t" }}{{.Usage}}
32
+ {{end}}
33
+ Run '{{.Name}} COMMAND --help' for more information on a command.
34
+ `
35
+ cli .CommandHelpTemplate = `Usage: ` + path .Base (os .Args [0 ]) + ` {{.Name}}{{if .Flags}} [OPTIONS]
36
+
37
+ {{.Usage}}
38
+
39
+ Options:
40
+ {{range .Flags}}{{.}}
41
+ {{end}}{{end}}
42
+ `
43
+
16
44
app := cli .NewApp ()
17
45
app .Name = "libcompose-cli"
18
46
app .Usage = "Command line interface for libcompose."
You can’t perform that action at this time.
0 commit comments