From a6629f44d035c2823d9f8a797f2e5d3541c6a816 Mon Sep 17 00:00:00 2001 From: Kyattsukuro Date: Mon, 30 Mar 2026 11:31:44 +0200 Subject: [PATCH] added version tag --- fledermaus_formatter/main.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fledermaus_formatter/main.py b/fledermaus_formatter/main.py index fce2213..cdf7885 100644 --- a/fledermaus_formatter/main.py +++ b/fledermaus_formatter/main.py @@ -42,6 +42,7 @@ def main(): # Single file mode (optional fallback) parser.add_argument("-i", "--input", help="Input Excel file") parser.add_argument("-o", "--output", help="Output Excel file") + parser.add_argument("-v", help="Version", action="store_true") # Directory mode parser.add_argument("--input-dir", help="Input directory") @@ -49,13 +50,20 @@ def main(): parser.add_argument( "-t", "--type", - required=True, + required=False, choices=["ring", "counting"], help="Type of table to process" ) args = parser.parse_args() + if args.v: + print("1.0") + return + if not args.type: + parser.error("The --type argument is required.") + retur + # directory if args.input_dir and args.output_dir: logger.info("Running in directory mode")