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")