From 9485b1b08edbcd61d0a77fe2c8d85ada57b646ef Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 8 Sep 2009 20:54:35 -0400 Subject: Add a default to the ssh-key option --- rpmbuild-remote.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rpmbuild-remote.py') diff --git a/rpmbuild-remote.py b/rpmbuild-remote.py index f8cd500..6142861 100644 --- a/rpmbuild-remote.py +++ b/rpmbuild-remote.py @@ -35,7 +35,9 @@ def get_parser(): help="The remote machine to use (defined in config file)") parser.add_option("-k", "--ssh-key", action="store", type="string", dest="ssh_key", - help="The private SSH key to use to login") + default=os.path.join(home, ".ssh/id_rsa") + help="The private SSH key to use to login. " + "[Default: ~/.ssh/id_rsa]") parser.add_option("-u", "--user", action="store", type="string", dest="user", default=os.getlogin(), -- cgit