This commit is contained in:
Raúl Kripalani 2021-07-29 12:54:23 +01:00
parent d9c6a32b8e
commit 3b2c3a3f6b
2 changed files with 8 additions and 8 deletions

View File

@ -27,9 +27,9 @@ const (
metadataTraceContext = "traceContext"
)
// The flags passed on the command line with the listen address of the API
// server (only used by the tests), in the order of precedence they should be
// applied for the requested kind of node.
// flagsForAPI returns flags passed on the command line with the listen address
// of the API server (only used by the tests), in the order of precedence they
// should be applied for the requested kind of node.
func flagsForAPI(t repo.RepoType) []string {
switch t {
case repo.FullNode:

View File

@ -76,10 +76,10 @@ func main() {
}
app := &cli.App{
Name: "lotus-miner",
Usage: "Filecoin decentralized storage network miner",
Version: build.UserVersion(),
Commands: append(local, lcli.CommonCommands...),
Name: "lotus-miner",
Usage: "Filecoin decentralized storage network miner",
Version: build.UserVersion(),
EnableBashCompletion: true,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "actor",
@ -112,7 +112,7 @@ func main() {
},
cliutil.FlagVeryVerbose,
},
EnableBashCompletion: true,
Commands: append(local, lcli.CommonCommands...),
Before: func(c *cli.Context) error {
// this command is explicitly called on markets, inform
// common commands by overriding the repoType.