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

View File

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