Skip to content

Commit 4a79274

Browse files
authored
Merge pull request #1588 from dbcli/RW/make-capath-cli-arg-a-path
Make the `--ssl-capath` CLI argument a directory
2 parents f2f8adb + 5b219fc commit 4a79274

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
Upcoming (TBD)
2+
==============
3+
4+
Bug Fixes
5+
---------
6+
* Make `--ssl-capath` argument a directory.
7+
8+
19
1.55.0 (2026/02/20)
210
==============
311

mycli/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@ def get_last_query(self) -> str | None:
16631663
)
16641664
@click.option("--ssl/--no-ssl", "ssl_enable", default=None, help="Enable SSL for connection (automatically enabled with other flags).")
16651665
@click.option("--ssl-ca", help="CA file in PEM format.", type=click.Path(exists=True))
1666-
@click.option("--ssl-capath", help="CA directory.")
1666+
@click.option("--ssl-capath", help="CA directory.", type=click.Path(exists=True, file_okay=False, dir_okay=True))
16671667
@click.option("--ssl-cert", help="X509 cert in PEM format.", type=click.Path(exists=True))
16681668
@click.option("--ssl-key", help="X509 key in PEM format.", type=click.Path(exists=True))
16691669
@click.option("--ssl-cipher", help="SSL cipher to use.")

0 commit comments

Comments
 (0)