mirror of
https://github.com/OpenFreeEnergy/openfe.git
synced 2026-06-05 06:44:24 +08:00
19 lines
376 B
Python
19 lines
376 B
Python
import os
|
|
import click
|
|
import pathlib
|
|
from plugcli.params import MultiStrategyGetter, Option, NOT_PARSED
|
|
|
|
|
|
def get_dir(user_input, context):
|
|
dir_path = pathlib.Path(user_input)
|
|
return dir_path
|
|
|
|
|
|
OUTPUT_DIR = Option(
|
|
"-o",
|
|
"--output-dir",
|
|
help="Path to the output directory. ",
|
|
getter=get_dir,
|
|
type=click.Path(file_okay=False, resolve_path=True),
|
|
)
|