mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 02:12:01 +00:00
Ensure consistent program naming
(`python -m freqtrade --version`)
This commit is contained in:
parent
dd04c51c42
commit
73905b33ad
|
@ -197,7 +197,10 @@ class Arguments:
|
||||||
self._build_args(optionlist=ARGS_STRATEGY, parser=strategy_group)
|
self._build_args(optionlist=ARGS_STRATEGY, parser=strategy_group)
|
||||||
|
|
||||||
# Build main command
|
# Build main command
|
||||||
self.parser = argparse.ArgumentParser(description='Free, open source crypto trading bot')
|
self.parser = argparse.ArgumentParser(
|
||||||
|
prog="freqtrade",
|
||||||
|
description='Free, open source crypto trading bot'
|
||||||
|
)
|
||||||
self._build_args(optionlist=['version'], parser=self.parser)
|
self._build_args(optionlist=['version'], parser=self.parser)
|
||||||
|
|
||||||
from freqtrade.commands import (start_analysis_entries_exits, start_backtesting,
|
from freqtrade.commands import (start_analysis_entries_exits, start_backtesting,
|
||||||
|
|
|
@ -20,7 +20,10 @@ logger = logging.getLogger("ft_rest_client")
|
||||||
|
|
||||||
|
|
||||||
def add_arguments(args: Any = None):
|
def add_arguments(args: Any = None):
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser(
|
||||||
|
prog="freqtrade-client",
|
||||||
|
description="Client for the freqtrade REST API",
|
||||||
|
)
|
||||||
parser.add_argument("command",
|
parser.add_argument("command",
|
||||||
help="Positional argument defining the command to execute.",
|
help="Positional argument defining the command to execute.",
|
||||||
nargs="?"
|
nargs="?"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user