From 05cd57a7a9fef1d91e75ca8a11f751d4cd2b6a1b Mon Sep 17 00:00:00 2001 From: "Andrew Jackson (Ajax)" Date: Thu, 9 Nov 2023 10:57:57 -0600 Subject: [PATCH] lp config from-miner flag name now --to-layer --- cmd/lotus-provider/migrate.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/lotus-provider/migrate.go b/cmd/lotus-provider/migrate.go index 94e8f2948..47095c398 100644 --- a/cmd/lotus-provider/migrate.go +++ b/cmd/lotus-provider/migrate.go @@ -34,14 +34,14 @@ var configMigrateCmd = &cli.Command{ Usage: fmt.Sprintf("Specify miner repo path. flag(%s) and env(LOTUS_STORAGE_PATH) are DEPRECATION, will REMOVE SOON", FlagMinerRepoDeprecation), }, &cli.StringFlag{ - Name: "layer", - Aliases: []string{"l"}, + Name: "to-layer", + Aliases: []string{"t"}, Usage: "The layer name for this data push. 'base' is recommended for single-miner setup.", }, &cli.BoolFlag{ - Name: "overwrite", - Aliases: []string{"o"}, - Usage: "Use this with layer to overwrite an existing layer", + Name: "replace", + Aliases: []string{"r"}, + Usage: "Use this with --to-layer to replace an existing layer", }, }, Action: fromMiner, @@ -94,7 +94,7 @@ func fromMiner(cctx *cli.Context) (err error) { return fmt.Errorf("miner cannot reach the db. Ensure the config toml's HarmonyDB entry"+ " is setup to reach Yugabyte correctly: %s", err.Error()) } - name := cctx.String("layer") + name := cctx.String("to-layer") if name == "" { name = fmt.Sprintf("mig%d", len(titles)) } else {