From a94ab050bf79eaef2f127964e0e46c4ac6bd008f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Kripalani?= Date: Thu, 29 Jul 2021 13:38:08 +0100 Subject: [PATCH] fix docs, add flag. --- cli/util/api.go | 1 - cmd/lotus-miner/main.go | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cli/util/api.go b/cli/util/api.go index 4413fd3bb..c6e3ae9be 100644 --- a/cli/util/api.go +++ b/cli/util/api.go @@ -125,7 +125,6 @@ func GetAPIInfo(ctx *cli.Context, t repo.RepoType) (APIInfo, error) { repoFlags := flagsForRepo(t) for _, f := range repoFlags { if !ctx.IsSet(f) { - fmt.Println("not set", f) continue } diff --git a/cmd/lotus-miner/main.go b/cmd/lotus-miner/main.go index 28bc3e637..3e413c6a6 100644 --- a/cmd/lotus-miner/main.go +++ b/cmd/lotus-miner/main.go @@ -23,6 +23,7 @@ import ( var log = logging.Logger("main") const FlagMinerRepo = "miner-repo" +const FlagMarketsRepo = "markets-repo" // TODO remove after deprecation period const FlagMinerRepoDeprecation = "storagerepo" @@ -106,6 +107,11 @@ func main() { Value: "~/.lotusminer", // TODO: Consider XDG_DATA_HOME Usage: fmt.Sprintf("Specify miner repo path. flag(%s) and env(LOTUS_STORAGE_PATH) are DEPRECATION, will REMOVE SOON", FlagMinerRepoDeprecation), }, + &cli.StringFlag{ + Name: FlagMarketsRepo, + EnvVars: []string{"LOTUS_MARKETS_PATH"}, + Usage: fmt.Sprintf("Markets repo path"), + }, &cli.BoolFlag{ Name: "call-on-markets", Usage: "(experimental; may be removed) call this command against a markets node; use only with common commands like net, auth, pprof, etc. whose target may be ambiguous",