mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-20 13:56:45 +00:00
Update config.go
This commit is contained in:
parent
feb2e5e016
commit
fc7034e326
@ -2,7 +2,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/jessevdk/go-flags"
|
"github.com/jessevdk/go-flags"
|
||||||
"github.com/kaspanet/kaspad/infrastructure/config"
|
"github.com/fabbez/topiad/infrastructure/config"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -27,8 +27,8 @@ func parseConfig() (*configFlags, error) {
|
|||||||
Timeout: defaultTimeout,
|
Timeout: defaultTimeout,
|
||||||
}
|
}
|
||||||
parser := flags.NewParser(cfg, flags.HelpFlag)
|
parser := flags.NewParser(cfg, flags.HelpFlag)
|
||||||
parser.Usage = "kaspactl [OPTIONS] [COMMAND] [COMMAND PARAMETERS].\n\nCommand can be supplied only if --json is not used." +
|
parser.Usage = "topiactl [OPTIONS] [COMMAND] [COMMAND PARAMETERS].\n\nCommand can be supplied only if --json is not used." +
|
||||||
"\n\nUse `kaspactl --list-commands` to get a list of all commands and their parameters." +
|
"\n\nUse `topiactl --list-commands` to get a list of all commands and their parameters." +
|
||||||
"\nFor optional parameters- use '-' without quotes to not pass the parameter.\n"
|
"\nFor optional parameters- use '-' without quotes to not pass the parameter.\n"
|
||||||
remainingArgs, err := parser.Parse()
|
remainingArgs, err := parser.Parse()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user