added version tag
This commit is contained in:
parent
17d8ac3def
commit
a6629f44d0
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user