diff --git a/pkg/ddlctl/ddlctl.go b/pkg/ddlctl/ddlctl.go index 4b7d104..26d6b4b 100644 --- a/pkg/ddlctl/ddlctl.go +++ b/pkg/ddlctl/ddlctl.go @@ -78,23 +78,9 @@ func DDLCtl(ctx context.Context) error { { Name: "generate", Short: "gen", - Usage: "ddlctl generate [options] --dialect --src --dst ", + Usage: "ddlctl generate [options] --dialect ", Description: "generate DDL from source (file or directory) to destination (file or directory).", - Options: append(opts, - &cliz.StringOption{ - Name: consts.OptionSource, - Environment: consts.EnvKeySource, - Description: "source file or directory", - Default: cliz.Default("/dev/stdin"), - }, - &cliz.StringOption{ - Name: consts.OptionDestination, - Environment: consts.EnvKeyDestination, - Description: "destination file or directory", - Default: cliz.Default("/dev/stdout"), - }, - ), - RunFunc: generate.Command, + RunFunc: generate.Command, }, { Name: "show",