From 95f681656c881b4ebf3c9bb2512a5ca8ea8a0b80 Mon Sep 17 00:00:00 2001 From: Paul Farault Date: Thu, 18 Jul 2024 15:01:40 +0200 Subject: [PATCH] feat: rename --run-directory to --cwd --- tdp/cli/__main__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tdp/cli/__main__.py b/tdp/cli/__main__.py index d50acb97..597f6457 100644 --- a/tdp/cli/__main__.py +++ b/tdp/cli/__main__.py @@ -52,10 +52,10 @@ def load_env(ctx: click.Context, param: click.Parameter, value: Path) -> Optiona help="Set the level of log output.", ) @click.option( - "--run-directory", - envvar="TDP_RUN_DIRECTORY", + "--cwd", + envvar="TDP_CWD", type=click.Path(resolve_path=True, exists=True), - help="Working directory where the executor is launched (`ansible-playbook` for Ansible).", + help="Current working directory, where the command will be executed.", required=True, callback=lambda ctx, param, value: chdir(value), expose_value=False,