Skip to content

Commit 3c8258b

Browse files
style: format cli.py with ruff
1 parent ec44361 commit 3c8258b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/datajoint/cli.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,21 @@ def cli(args: list[str] | None = None) -> None:
5555
epilog="Example: dj -s my_lab:lab --host localhost:3306",
5656
)
5757
parser.add_argument(
58-
"-V", "--version",
58+
"-V",
59+
"--version",
5960
action="version",
6061
version=f"{dj.__name__} {dj.__version__}",
6162
)
6263
parser.add_argument(
63-
"-u", "--user",
64+
"-u",
65+
"--user",
6466
type=str,
6567
default=None,
6668
help="Database username (default: from config)",
6769
)
6870
parser.add_argument(
69-
"-p", "--password",
71+
"-p",
72+
"--password",
7073
type=str,
7174
default=None,
7275
help="Database password (default: from config)",
@@ -78,7 +81,8 @@ def cli(args: list[str] | None = None) -> None:
7881
help="Database host as host:port (default: from config)",
7982
)
8083
parser.add_argument(
81-
"-s", "--schemas",
84+
"-s",
85+
"--schemas",
8286
nargs="+",
8387
type=str,
8488
metavar="DB:ALIAS",

0 commit comments

Comments
 (0)