From 89ebeef1ee63c39781800f4d932e6b3cf101ad4e Mon Sep 17 00:00:00 2001 From: Esa Kataja Date: Thu, 13 Mar 2025 14:26:46 +0200 Subject: [PATCH] Add help texts to cli interface --- src/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.py b/src/main.py index aa7d575..40570ed 100644 --- a/src/main.py +++ b/src/main.py @@ -6,10 +6,10 @@ from xml_parser import get_xml_data, add_connection, write_xml_data @click.command -@click.option('-j', '--json', type=Path, required=True) -@click.option('-x', '--xml', type=Path, required=True) -@click.option('-n', '--name', type=str, required=True) -@click.option('-d', '--description', type=str, required=True) +@click.option('-j', '--json', type=Path, required=True, help='Path to the JSON file') +@click.option('-x', '--xml', type=Path, required=True, help='Path to the XML file. If the file does not exist, a default configuration will be generated.') +@click.option('-n', '--name', type=str, required=True, help='Name of the connection') +@click.option('-d', '--description', type=str, required=True, help='Description of the connection') @click.option('-p', '--pretty', is_flag=True, default=False, help='Enable pretty output') def main(json: Path, xml: Path, name: str, description: str, pretty: bool): xml_data = get_xml_data(xml)