Skip to content

Commit 1c59f38

Browse files
committed
CU-869azeyvz: Unify 2 usage messages
1 parent ac5297e commit 1c59f38

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

medcat-v2/medcat/__main__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import sys
22

33

4+
_DL_SCRIPTS_USAGE = "Usage: python -m medcat download-scripts [DEST] [log_level]"
5+
6+
47
def main(*args: str):
58
if not args:
6-
print("Usage: python -m medcat download-scripts [DEST] [log_level]",
7-
file=sys.stderr)
9+
print(_DL_SCRIPTS_USAGE, file=sys.stderr)
810
sys.exit(1)
911
if len(args) >= 1 and args[0] == "download-scripts":
1012
from medcat.utils.download_scripts import main
@@ -14,8 +16,7 @@ def main(*args: str):
1416
kwargs["log_level"] = args[2].upper()
1517
main(dest, **kwargs)
1618
else:
17-
print("Usage: python -m medcat download-scripts [DEST]",
18-
file=sys.stderr)
19+
print(_DL_SCRIPTS_USAGE, file=sys.stderr)
1920
sys.exit(1)
2021

2122

0 commit comments

Comments
 (0)