Ensure consistent program naming

(`python -m freqtrade --version`)
This commit is contained in:
Matthias 2024-04-27 08:48:40 +02:00
parent dd04c51c42
commit 73905b33ad
2 changed files with 8 additions and 2 deletions

View File

@ -197,7 +197,10 @@ class Arguments:
self._build_args(optionlist=ARGS_STRATEGY, parser=strategy_group)
# 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)
from freqtrade.commands import (start_analysis_entries_exits, start_backtesting,

View File

@ -20,7 +20,10 @@ logger = logging.getLogger("ft_rest_client")
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",
help="Positional argument defining the command to execute.",
nargs="?"