Add --print-json and -1/--one-column options

This commit is contained in:
hroff-1902
2019-10-15 22:31:23 +03:00
parent ad89d19955
commit 89e0c76a3f
3 changed files with 13 additions and 1 deletions

View File

@@ -34,7 +34,8 @@ ARGS_LIST_EXCHANGES = ["print_one_column", "list_exchanges_all"]
ARGS_LIST_TIMEFRAMES = ["exchange", "print_one_column"]
ARGS_LIST_PAIRS = ["exchange", "print_list", "base_currency", "quote_currency", "active_only"]
ARGS_LIST_PAIRS = ["exchange", "print_list", "list_pairs_print_json", "print_one_column",
"base_currency", "quote_currency", "active_only"]
ARGS_CREATE_USERDIR = ["user_data_dir"]

View File

@@ -262,6 +262,12 @@ AVAILABLE_CLI_OPTIONS = {
'printed in the tabular format.',
action='store_true',
),
"list_pairs_print_json": Arg(
'--print-json',
help='Print list of pairs or market symbols in JSON format.',
action='store_true',
default=False,
),
"quote_currency": Arg(
'--quote-currency',
help='Select quote currency.',