]> thyrsus.com Git - ssh-installkeys.git/commitdiff
Fix the help option.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 30 Dec 2003 17:15:58 +0000 (17:15 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 30 Dec 2003 17:15:58 +0000 (17:15 +0000)
ssh-installkeys

index 92a16e4c4f62870739f6cbbe11054ba9b9a83168..4052940c644b00c341ed0b42e54b65e3c9c0cfe7 100755 (executable)
@@ -1,23 +1,20 @@
 #!/usr/bin/env python
-"""ssh-installkeys -- prepare a remote account for ssh access
-
-This script tries to export ssh public keys to a specified site.  It will
+# ssh-installkeys -- prepare a remote account for ssh access
+"""This script tries to export ssh public keys to a specified site.  It will
 walk you through generating key pairs if it doesn't find any to export.
 It handles all the fiddly details like making sure local and remote
 permissions are correct, and tells you what it's doing if it has to change
 anything.
 
 Options:
-
 -h        Print usage summary and exit
 -c        Check local and remote configuration only, don't try to fix problems.
 -d        Delete remote .ssh configuration.
 -v        Report all commands sent to host and output received.
 
-Author: Eric S. Raymond <esr@thyrsus.com>
+Author: Eric S. Raymond <esr@thyrsus.com>"""
 
-$Id: ssh-installkeys,v 1.13 2003/12/04 00:44:45 esr Exp esr $
-"""
+# $Id: ssh-installkeys,v 1.14 2003/12/04 01:26:59 esr Exp esr $
 
 import os, sys, getopt, string, getpass, tempfile
 
@@ -66,7 +63,7 @@ A critical module was not found. Probably this OS does not support it.
 Currently pexpect is intended for UNIX operating systems (including OS-X)."""
 
 __version__ = '0.94'
-__revision__ = '$Revision: 1.13 $'
+__revision__ = '$Revision: 1.14 $'
 __all__ = ['ExceptionPexpect', 'EOF', 'TIMEOUT', 'spawn',
     '__version__', '__revision__']
 
@@ -634,7 +631,7 @@ def forcefile(session, file, command, checkonly=None):
 
 if __name__ == '__main__': 
     # Process options
-    (options, arguments) = getopt.getopt(sys.argv[1:], "cdh:v")
+    (options, arguments) = getopt.getopt(sys.argv[1:], "cdhv")
     check = 0
     verbose = 0
     delete = 0
@@ -645,7 +642,7 @@ if __name__ == '__main__':
         elif (switch == '-d'):
             delete = 1
        elif (switch == '-h'):
-           print __doc__ % login
+           print __doc__
             raise SystemExit, 0
        elif (switch == '-v'):
            verbose = 1