certcheck has a --help argument
authorRalf Jung <post@ralfj.de>
Sun, 13 Dec 2015 10:57:30 +0000 (11:57 +0100)
committerRalf Jung <post@ralfj.de>
Sun, 13 Dec 2015 10:57:30 +0000 (11:57 +0100)
certcheck

index dc9e9efe459678732e123a14acd20aac5ae17fbc..e6986bd30a870c646af566d177ddd62f9877ba51 100755 (executable)
--- a/certcheck
+++ b/certcheck
@@ -1,8 +1,5 @@
 #!/usr/bin/python3
-## Usage:
-##   ./certcheck -d DAYS <file/folder> <file/folder> ...
-## Recursively crawl all given folders for files ending in '.crt', and check all of them and all given files for their
-## expiry date. If that is less than DAYS in the future, print that information.
+## Call with "--help" for documentation.
 
 import argparse, subprocess, re, os, datetime
 
@@ -28,7 +25,7 @@ if __name__ == "__main__":
     parser = argparse.ArgumentParser(description='Check for soon-to-expire (and already expired) certificates')
     parser.add_argument("-d", "--days", metavar='N',
                         dest="days", type=int, default=14,
-                        help="Warn about certificates valid for less than N (default 7)")
+                        help="Warn about certificates valid for less than N (default 14).")
     parser.add_argument("certs",  metavar='CERTS', nargs='+',
                         help="These certificate files are checked. Directories are searched recursively for files called '*.crt'.")
     args = parser.parse_args()