From c354157bd5e5ef761d30155de55a983aa021301a Mon Sep 17 00:00:00 2001 From: DavHau Date: Tue, 25 Jul 2023 00:59:03 +0200 Subject: [PATCH] clan-cli: minor fixes in ssh.py --- pkgs/clan-cli/clan_cli/ssh.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/clan-cli/clan_cli/ssh.py b/pkgs/clan-cli/clan_cli/ssh.py index 1771e5d..c33a2f2 100644 --- a/pkgs/clan-cli/clan_cli/ssh.py +++ b/pkgs/clan-cli/clan_cli/ssh.py @@ -10,8 +10,6 @@ def ssh( password: Optional[str] = None, ssh_args: list[str] = [], ) -> None: - if ssh_args is None: - ssh_args = [] nix_shell_args = [] password_args = [] if password: @@ -68,12 +66,12 @@ def register_parser(parser: argparse.ArgumentParser) -> None: parser.add_argument( "-j", "--json", - help="specify the json file for ssh data (generated by starting the clan installer", + help="specify the json file for ssh data (generated by starting the clan installer)", ) parser.add_argument( "-P", "--png", - help="specify the json file for ssh data as the qrcode image (generated by starting the clan installer", + help="specify the json file for ssh data as the qrcode image (generated by starting the clan installer)", ) # TODO pass all args we don't parse into ssh_args, currently it fails if arg starts with - parser.add_argument("ssh_args", nargs="*", default=[])