@@ -1006,7 +1006,7 @@ def get_last_query(self):
10061006@click .option ('--list-dsn' , 'list_dsn' , is_flag = True ,
10071007 help = 'list of DSN configured into the [alias_dsn] section of myclirc file.' )
10081008@click .option ('--list-ssh-config' , 'list_ssh_config' , is_flag = True ,
1009- help = 'list of ssh configurations in the ssh config.' )
1009+ help = 'list ssh configurations in the ssh config (requires paramiko) .' )
10101010@click .option ('-R' , '--prompt' , 'prompt' ,
10111011 help = 'Prompt format (Default: "{0}").' .format (
10121012 MyCli .default_prompt ))
@@ -1079,8 +1079,7 @@ def cli(database, user, host, port, socket, password, dbname,
10791079 if list_ssh_config :
10801080 if not paramiko :
10811081 click .secho (
1082- "Cannot use SSH transport because paramiko isn't installed, "
1083- "please install paramiko or don't use --list-ssh-config=" ,
1082+ "This features requires paramiko. Please install paramiko and try again." ,
10841083 err = True , fg = 'red'
10851084 )
10861085 exit (1 )
@@ -1155,8 +1154,7 @@ def cli(database, user, host, port, socket, password, dbname,
11551154 if ssh_config_host :
11561155 if not paramiko :
11571156 click .secho (
1158- "Cannot use SSH transport because paramiko isn't installed, "
1159- "please install paramiko or don't use --ssh-config_host=" ,
1157+ "This features requires paramiko. Please install paramiko and try again." ,
11601158 err = True , fg = 'red'
11611159 )
11621160 exit (1 )
0 commit comments