Skip to content

Commit 9fc52c3

Browse files
committed
Update version info and remove unused script
1 parent a542269 commit 9fc52c3

2 files changed

Lines changed: 9 additions & 14 deletions

File tree

‎ozwsh.sh‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎pyozw_version.py‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,13 @@
2424
pyozw_version = '0.3.0-beta1'
2525

2626
if __name__ == '__main__':
27-
print(pyozw_version)
27+
import sys
28+
if len(sys.argv)>1 and sys.argv[1]=="--major":
29+
if "-" in pyozw_version:
30+
res = pyozw_version.split("-")
31+
print(res[0])
32+
else:
33+
print(pyozw_version)
34+
else:
35+
print(pyozw_version)
2836

0 commit comments

Comments
 (0)