We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d298f64 commit 691a0a3Copy full SHA for 691a0a3
1 file changed
comment_spell_check.py
@@ -16,6 +16,8 @@
16
17
from importlib.metadata import version, PackageNotFoundError
18
19
+__version__ = "unknown"
20
+
21
try:
22
__version__ = version("CommentSpellCheck")
23
except PackageNotFoundError:
@@ -358,9 +360,9 @@ def parse_args():
358
360
help="Set file mime type. File name suffix will be ignored.",
359
361
)
362
- # parser.add_argument(
- # "--version", action="version", version=f"%(prog)s {__version__}"
363
- # )
+ parser.add_argument(
364
+ "--version", action="version", version=f"%(prog)s {__version__}"
365
+ )
366
367
args = parser.parse_args()
368
return args
0 commit comments