Skip to content

Commit 5423f4d

Browse files
Merge pull request #10 from CBICA/ag-dev
small futureproofing for argparse
2 parents 2642dda + 61e8237 commit 5423f4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

DLICV/__main__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def main() -> None:
5353
)
5454
parser.add_argument(
5555
"-o",
56-
"out_dir",
56+
"--out_dir",
5757
type=str,
5858
required=True,
5959
help="[REQUIRED] Output folder. If it does not exist it will be created. Predicted segmentations will have the same name as their source images.",
@@ -204,6 +204,8 @@ def main() -> None:
204204

205205
args = parser.parse_args()
206206
args.f = [0]
207+
args.i = args.in_dir
208+
args.o = args.out_dir
207209

208210
if args.clear_cache:
209211
shutil.rmtree(os.path.join(Path(__file__).parent, "nnunet_results"))

0 commit comments

Comments
 (0)