Skip to content

Commit

Permalink
rename 'show-config' to 'show-params'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Mar 20, 2024
1 parent 6fae3d9 commit 2497b83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions counterparty-cli/counterpartycli/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def main():
parser_checkdb = subparsers.add_parser('check-db', help='do an integrity check on the database')
add_config_arguments(parser_checkdb, CONFIG_ARGS, configfile)

parser_show_config = subparsers.add_parser('show-config', help='Show counterparty-server configuration')
parser_show_config = subparsers.add_parser('show-params', help='Show counterparty-server configuration')
add_config_arguments(parser_show_config, CONFIG_ARGS, configfile)

args = parser.parse_args()
Expand Down Expand Up @@ -225,8 +225,8 @@ def main():
elif args.action == 'start':
server.start_all(catch_up=args.catch_up)

elif args.action == 'show-config':
server.show_config()
elif args.action == 'show-params':
server.show_params()

elif args.action == 'vacuum':
server.vacuum()
Expand Down
2 changes: 1 addition & 1 deletion counterparty-lib/counterpartylib/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ def check_database():
cprint('Database checks complete.', 'green')


def show_config():
def show_params():
output = vars(config)
for k in list(output.keys()):
if k.isupper():
Expand Down

0 comments on commit 2497b83

Please sign in to comment.