fix cli arg

This commit is contained in:
Aleksandr Trushkin
2024-01-29 13:21:56 +03:00
parent 9ef5f2bbf8
commit 3754441492

View File

@ -300,6 +300,7 @@ func newExportYMLCatalogCmd() *cli.Command {
Flags: []cli.Flag{ Flags: []cli.Flag{
&cli.StringFlag{ &cli.StringFlag{
Name: "out", Name: "out",
Aliases: []string{"o"},
Usage: "destination path", Usage: "destination path",
Value: "yml_catalog.xml", Value: "yml_catalog.xml",
TakesFile: true, TakesFile: true,
@ -684,7 +685,7 @@ func decorateAction(a action) cli.ActionFunc {
} }
func exportYMLCatalogAction(ctx context.Context, c *cli.Command) error { func exportYMLCatalogAction(ctx context.Context, c *cli.Command) error {
path := c.String("dst") path := c.String("out")
limit := c.Int("limit") limit := c.Int("limit")
pretty := c.Bool("pretty") pretty := c.Bool("pretty")