From a57942a4084de85fd3d1c654d14f4ed1e1ec4bf0 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Fri, 23 Jun 2023 19:10:52 +0200 Subject: [PATCH] Set rich_click.{SHOW_ARGUMENTS,OPTIONS_GROUPS} (#466) --- silkaj/cli.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/silkaj/cli.py b/silkaj/cli.py index 53928a4e..0655d943 100644 --- a/silkaj/cli.py +++ b/silkaj/cli.py @@ -40,6 +40,30 @@ from silkaj.wot.lookup import lookup_cmd from silkaj.wot.membership import send_membership from silkaj.wot.status import status +click.rich_click.SHOW_ARGUMENTS = True +click.rich_click.OPTION_GROUPS = { + "silkaj": [ + { + "name": "Basic options", + "options": ["--help", "--version"], + }, + { + "name": "Endpoint and currency specification", + "options": ["--endpoint", "--gtest"], + }, + { + "name": "Authentication", + "options": [ + "--auth-scrypt", + "--nrp", + "--auth-file", + "--auth-seed", + "--auth-wif", + ], + }, + ], +} + @click.group() @click.help_option("-h", "--help") -- GitLab