cosmetics in arguments.py

This commit is contained in:
hroff-1902 2019-07-01 01:05:29 +03:00
parent b927406c1a
commit 4823656028

View File

@ -31,7 +31,7 @@ class Arg:
# List of available command line arguments # List of available command line arguments
AVAILABLE_CLI_OPTIONS = { AVAILABLE_CLI_OPTIONS = {
# Common arguments # Common options
"loglevel": Arg( "loglevel": Arg(
'-v', '--verbose', '-v', '--verbose',
help='Verbose mode (-vv for more, -vvv to get all messages).', help='Verbose mode (-vv for more, -vvv to get all messages).',
@ -45,7 +45,6 @@ AVAILABLE_CLI_OPTIONS = {
dest='logfile', dest='logfile',
metavar='FILE', metavar='FILE',
), ),
"version": Arg( "version": Arg(
'--version', '--version',
action='version', action='version',
@ -64,7 +63,7 @@ AVAILABLE_CLI_OPTIONS = {
help='Path to backtest data.', help='Path to backtest data.',
dest='datadir', dest='datadir',
metavar='PATH',), metavar='PATH',),
# Main options # Main (Live Run/Dry Run) options
"strategy": Arg( "strategy": Arg(
'-s', '--strategy', '-s', '--strategy',
help='Specify strategy class name (default: `%(default)s`).', help='Specify strategy class name (default: `%(default)s`).',
@ -103,7 +102,7 @@ AVAILABLE_CLI_OPTIONS = {
action='store_true', action='store_true',
dest='sd_notify', dest='sd_notify',
), ),
# Optimize common # Common Optimize options
"ticker_interval": Arg( "ticker_interval": Arg(
'-i', '--ticker-interval', '-i', '--ticker-interval',
help='Specify ticker interval (`1m`, `5m`, `30m`, `1h`, `1d`).', help='Specify ticker interval (`1m`, `5m`, `30m`, `1h`, `1d`).',
@ -134,7 +133,7 @@ AVAILABLE_CLI_OPTIONS = {
action='store_true', action='store_true',
dest='refresh_pairs', dest='refresh_pairs',
), ),
# backtesting # Backtesting
"position_stacking": Arg( "position_stacking": Arg(
'--eps', '--enable-position-stacking', '--eps', '--enable-position-stacking',
help='Allow buying the same pair multiple times (position stacking).', help='Allow buying the same pair multiple times (position stacking).',
@ -190,7 +189,7 @@ AVAILABLE_CLI_OPTIONS = {
'Example: `--stoplosses=-0.01,-0.1,-0.001`', 'Example: `--stoplosses=-0.01,-0.1,-0.001`',
dest='stoploss_range', dest='stoploss_range',
), ),
# hyperopt # Hyperopt
"hyperopt": Arg( "hyperopt": Arg(
'--customhyperopt', '--customhyperopt',
help='Specify hyperopt class name (default: `%(default)s`).', help='Specify hyperopt class name (default: `%(default)s`).',
@ -249,21 +248,20 @@ AVAILABLE_CLI_OPTIONS = {
type=check_int_positive, type=check_int_positive,
metavar='INT', metavar='INT',
), ),
# List_exchange # List exchanges
"print_one_column": Arg( "print_one_column": Arg(
'-1', '--one-column', '-1', '--one-column',
help='Print exchanges in one column.', help='Print exchanges in one column.',
action='store_true', action='store_true',
dest='print_one_column', dest='print_one_column',
), ),
# script_options # Common script options
"pairs": Arg( "pairs": Arg(
'-p', '--pairs', '-p', '--pairs',
help='Show profits for only these pairs. Pairs are comma-separated.', help='Show profits for only these pairs. Pairs are comma-separated.',
dest='pairs', dest='pairs',
), ),
# Download data # Download data
"pairs_file": Arg( "pairs_file": Arg(
'--pairs-file', '--pairs-file',
help='File containing a list of pairs to download.', help='File containing a list of pairs to download.',
@ -298,7 +296,7 @@ AVAILABLE_CLI_OPTIONS = {
dest='erase', dest='erase',
action='store_true', action='store_true',
), ),
# Plot_df_options # Plot Dataframe options
"indicators1": Arg( "indicators1": Arg(
'--indicators1', '--indicators1',
help='Set indicators from your strategy you want in the first row of the graph. ' help='Set indicators from your strategy you want in the first row of the graph. '