From 7815e8f7bb05d3cf853ff1b74ecc624c42ad277b Mon Sep 17 00:00:00 2001 From: ginokent <29125616+ginokent@users.noreply.github.com> Date: Tue, 30 Apr 2024 08:49:54 +0900 Subject: [PATCH] fix: misc --- pkg/ddlctl/ddlctl.go | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) 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",