Skip to content

Commit 69553af

Browse files
committed
Fix bug in --full-form handling
1 parent 5453575 commit 69553af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mathicsscript/__main__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
# Copyright (C) 2025 Rocky Bernstein <rb@dustyfeet.com>
2+
# Copyright (C) 2025-2026 Rocky Bernstein <rb@dustyfeet.com>
33
# This program is free software: you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
55
# the Free Software Foundation, either version 3 of the License, or
@@ -278,13 +278,13 @@ def fmt_fun(query: Any) -> Any:
278278
)
279279
@click.version_option(version=__version__)
280280
@click.option(
281-
"--full-form",
281+
"--full-form/--no-full-form",
282282
"-F",
283-
"full_form",
284-
flag_value="full_form",
285283
default=False,
286284
required=False,
287-
help="Show how input was parsed to FullForm",
285+
show_default=True,
286+
is_flag=True,
287+
help="If true, show how input was parsed to FullForm",
288288
)
289289
@click.option(
290290
"--persist",

0 commit comments

Comments
 (0)