tojscript 1.0.3__tar.gz → 1.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tojscript
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Requires-Dist: colorama
5
5
  Dynamic: requires-dist
@@ -1,7 +1,7 @@
1
1
  from setuptools import setup, find_packages
2
2
  setup(
3
3
  name="tojscript",
4
- version="1.0.3",
4
+ version="1.0.4",
5
5
  packages=find_packages(),
6
6
  install_requires=["colorama"],
7
7
  entry_points={
@@ -9,4 +9,4 @@ setup(
9
9
  "toj=tojscript:main",
10
10
  ],
11
11
  },
12
- )
12
+ )
@@ -172,8 +172,10 @@ sys.meta_path.insert(0, TojImportHook())
172
172
 
173
173
  def main():
174
174
  if len(sys.argv) > 1:
175
- filename = sys.argv[1]
176
- run(filename)
175
+ if sys.argv[1] == "--version":
176
+ print("TojScript 1.0.3")
177
+ return
178
+ run(sys.argv[1])
177
179
  else:
178
180
  run("main.toj")
179
181
 
@@ -1,5 +1,5 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tojscript
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Requires-Dist: colorama
5
5
  Dynamic: requires-dist
File without changes