mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-05 05:01:28 +00:00
api/client: Allow for multi-line usage help
Subcommands can provide multiple usage synopses. Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
This commit is contained in:
@@ -215,7 +215,7 @@ func (s *DockerSuite) TestHelpTextVerify(c *check.C) {
|
||||
c.Fatalf("Bad output from %q\nstdout:%q\nstderr:%q\nec:%d\nerr:%q", args, stdout, stderr, ec, err)
|
||||
}
|
||||
// Should have just short usage
|
||||
if !strings.Contains(stderr, "\nUsage: ") {
|
||||
if !strings.Contains(stderr, "\nUsage:\t") {
|
||||
c.Fatalf("Missing short usage on %q\nstderr:%q", args, stderr)
|
||||
}
|
||||
// But shouldn't have full usage
|
||||
|
||||
Reference in New Issue
Block a user