Sync names in program from documentation
@@ -67,13 +67,13 @@ func CanonizeBuilderImageArg(builderImage string) string {
// NewCmdGenerate implements the S2I cli generate command.
func NewCmdGenerate(cfg *api.Config) *cobra.Command {
generateCmd := &cobra.Command{
- Use: "generate <image> <dockerfile>",
+ Use: "generate <builder image> <output file>",
Short: "Generate a Dockerfile using an existing S2I builder image " +
"that can be used to produce an image by any application " +
"supporting the format.",
Example: `
# Generate a Dockerfile for the centos/nodejs-10-centos7 builder image:
-$ s2i generate docker://docker.io/centos/nodejs-10-centos7 Dockerfile.gen
+$ s2i generate docker.io/centos/nodejs-10-centos7 Dockerfile.gen
`,
RunE: func(cmd *cobra.Command, _ []string) error {
if cmd.Flags().NArg() != 2 {
