Skip to content

Commit 9f636fc

Browse files
kannon92mr-c
authored andcommitted
feat: format
1 parent 12816d3 commit 9f636fc

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

cwltool/argparser.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def arg_parser() -> argparse.ArgumentParser:
4444
"--log-dir",
4545
type=str,
4646
default="",
47-
help="Log your tools stdout/stderr to this location outside of container",
47+
help="Log your tools stdout/stderr to this location outside of container "
48+
"This will only log stdout/stderr if you specify stdout/stderr in their respective fields or capture it as an output",
4849
)
4950

5051
parser.add_argument(

cwltool/context.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def make_tool_notimpl(
5656

5757
default_make_tool = make_tool_notimpl
5858

59+
5960
def log_handler(
6061
outdir: str,
6162
base_path_logs: str,
@@ -72,15 +73,11 @@ def log_handler(
7273
shutil.copy2(stderr_path, new_stderr_path)
7374

7475

75-
def set_log_dir(
76-
outdir: str,
77-
log_dir: str,
78-
subdir_name: str
79-
) -> str:
76+
def set_log_dir(outdir: str, log_dir: str, subdir_name: str) -> str:
8077
"""Default handler for setting the log directory."""
8178
if log_dir == "":
82-
return outdir
83-
else:
79+
return outdir
80+
else:
8481
return log_dir + "/" + subdir_name
8582

8683

cwltool/job.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,9 @@ def is_streamable(file: str) -> bool:
226226
indent=4,
227227
),
228228
)
229-
self.base_path_logs = runtimeContext.set_log_dir(self.outdir, runtimeContext.log_dir, self.name)
229+
self.base_path_logs = runtimeContext.set_log_dir(
230+
self.outdir, runtimeContext.log_dir, self.name
231+
)
230232

231233
def _execute(
232234
self,

0 commit comments

Comments
 (0)