We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71b9fa3 commit 9ed2a0dCopy full SHA for 9ed2a0d
csv2bufr/cli.py
@@ -88,6 +88,10 @@ def list_mappings(ctx):
88
@click.option("--output", "output", help="File to save the template to")
89
@cli_option_verbosity
90
def create_mappings(ctx, sequence, output, verbosity):
91
+ if not sequence:
92
+ click.echo("Error: Please provide a BUFRsequence.", err=True)
93
+ ctx.exit(1) # Exit with a non-zero status to indicate an error
94
+
95
msg = BUFRMessage(sequence)
96
template = msg.create_template()
97
if output:
0 commit comments