Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Commit e5af9ba

Browse files
committed
help descriptions
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
1 parent ef7ca7d commit e5af9ba

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

daita/daita.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
from daita.dashboard import dashboard
44
from daita.footer import footer
55

6-
parser = argparse.ArgumentParser(description="Optional app description")
7-
parser.add_argument("--dir", type=str, help="A required integer positional argument")
6+
parser = argparse.ArgumentParser(
7+
description="Upload images via DAITA's official easy-to-use Python library."
8+
)
9+
parser.add_argument("--dir", type=str, help="The root directory path for the images.")
810
parser.add_argument(
9-
"--daita_token", type=str, help="A required integer positional argument"
11+
"--daita_token", type=str, help="User access token for the DAITA platform."
1012
)
1113
args = parser.parse_args()
1214
dir = args.dir

daita/dashboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def dashboard(daita_token, dir):
113113
imagefiles, compressfiles = listAllFilesInDirectory(dir)
114114

115115
if len(imagefiles) == 0 and len(compressfiles) == 0:
116-
print("Folder is empty; please select again!")
116+
print("Folder is empty, please select again!")
117117
footer()
118118

119119
if len(imagefiles) > 0 and len(compressfiles) == 0:

daita/upload_images.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def UploadUpdate(filesnames):
6969
}
7070
preSignUrlResp = requests.post(endpointUploadUpdate, json=payload)
7171
if preSignUrlResp.status_code != 200:
72-
print("Something went wrong sorry, please check again")
72+
print("Something went wrong sorry, please check again!")
7373
print(preSignUrlResp.text)
7474
footer()
7575
return
@@ -163,7 +163,7 @@ def listen(q):
163163
t1.start()
164164
numberFileTotal = len(filenames)
165165
print(f"Total File: {numberFileTotal}")
166-
print("STARTING UPLOAD")
166+
print("STARTING UPLOAD...")
167167
currentFileCompleted = 0
168168
numFileCompleted = 0
169169
with tqdm(total=numberFileTotal, file=sys.stdout) as pbar:

0 commit comments

Comments
 (0)