fix cli arg
This commit is contained in:
@ -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")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user