Skip to content

Commit 6653879

Browse files
author
Chris Putnam
committed
add version info to license output
1 parent 3132d06 commit 6653879

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

binmerge

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@
2727
#
2828
import argparse, re, os, subprocess, sys, textwrap, traceback
2929
VERBOSE = False
30+
VERSION_STRING = "1.0.2"
3031

3132
def print_license():
32-
print(textwrap.dedent("""
33-
binmerge
33+
print(textwrap.dedent(f"""
34+
binmerge {VERSION_STRING}
3435
Copyright (C) 2024 Chris Putnam
3536
3637
This program is free software; you can redistribute it and/or modify
@@ -271,8 +272,7 @@ def main():
271272
def __call__(self, parser, namespace, values, option_string=None):
272273
print_license()
273274
parser.exit()
274-
275-
parser.add_argument('-l', '--license', default=False, help='prints license info and exit', action=licenseAction)
275+
parser.add_argument('-l', '--license', default=False, help='prints license info and exits', action=licenseAction)
276276
parser.add_argument('-v', '--verbose', action='store_true', help='print more verbose messages')
277277
parser.add_argument('-s', '--split', help='reverses operation, splitting merged files back to individual tracks', required=False, action='store_true')
278278
parser.add_argument('-o', '--outdir', default=False, help='output directory. defaults to the same directory as source cue. directory will be created (recursively) if needed.')

0 commit comments

Comments
 (0)