commit 17a0961ac4ce83ccf7b968b263ba2969d0144ed1
parent 36bec646e5f9e64a0cc3fe65b9fb92d8ac0da838
Author: gearsix <gearsix@tuta.io>
Date: Thu, 25 Apr 2024 10:30:56 +0100
added -v, --version flag; updated to v1.3.0
Diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/sya.py b/src/sya.py
@@ -7,7 +7,7 @@ import re
import os
import sys
-Version = 'v1.0.1'
+Version = 'v1.3.0'
Shell = True if sys.platform == 'win32' else False
@@ -150,6 +150,9 @@ def parse_args():
parser.add_argument('tracklist', metavar='TRACKLIST', nargs='*',
help='tracklist of title and timestamp information to split audio by')
# options
+ parser.add_argument('-v', '--version',
+ action='store_true', default=False, dest='vers',
+ help='Print version information')
parser.add_argument('-o', '--output',
metavar='PATH', type=str, nargs='?', dest='output',
help='specify the directory to write output files to (default: ./out)')
@@ -171,6 +174,10 @@ def parse_args():
return parser.parse_args()
def sya(args):
+ if args.vers == True:
+ print(Version)
+ return
+
if args.youtubedl == None:
args.youtubedl = 'yt-dlp.exe' if sys.platform == 'win32' else 'yt-dlp'
if args.ffmpeg == None: