diff --git a/python-pyo3/src/lib.rs b/python-pyo3/src/lib.rs index d99ba0a4..feb79ad2 100644 --- a/python-pyo3/src/lib.rs +++ b/python-pyo3/src/lib.rs @@ -17,6 +17,8 @@ fn vault_error_to_anyhow(err: VaultError) -> anyhow::Error { err.into() } +// These signatures can be removed in a future version since these are all required arguments +// https://github.com/PyO3/pyo3/blob/main/guide/src/function/signature.md#trailing-optional-arguments #[pyfunction(signature = (vault_stack=None, region=None, bucket=None, key=None, prefix=None))] fn all( vault_stack: Option, diff --git a/python/README.md b/python/README.md index 51dfdcdf..4e8ffcd8 100644 --- a/python/README.md +++ b/python/README.md @@ -54,7 +54,7 @@ Or install inside venv with: # With uv uv pip install . # Normal venv -python -m pip install -e . +python -m pip install . ``` After installing, you will have `vault` available in path. diff --git a/python/n_vault/cli.py b/python/n_vault/cli.py index ac137a24..f081f9d5 100644 --- a/python/n_vault/cli.py +++ b/python/n_vault/cli.py @@ -34,12 +34,12 @@ def main(): action.add_argument( "--version", action="store_true", - help="Print vault version", + help="Print vault version and exit", ) action.add_argument( "-s", "--store", - help="Name of element to store. Optionally read from file name", + help="Key name to use for stored value. Optionally read from file name", nargs="?", default="", ) @@ -157,6 +157,7 @@ def main(): if args.version: print(VERSION) exit(0) + try: if args.store and not (args.value or args.file): parser.error("--store requires --value or --file") diff --git a/python/uv.lock b/python/uv.lock index 1878ac49..39ba9c1a 100644 --- a/python/uv.lock +++ b/python/uv.lock @@ -606,7 +606,7 @@ wheels = [ [[package]] name = "nitor-vault" -version = "0.54" +version = "0.55" source = { editable = "." } dependencies = [ { name = "argcomplete" },