We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5897ea9 commit be8c698Copy full SHA for be8c698
main.go
@@ -3,13 +3,13 @@ package main
3
import (
4
"encoding/csv"
5
"errors"
6
+ "flag"
7
"fmt"
8
"os"
9
"strings"
10
"time"
11
)
12
-const FILENAME = "index.txt"
13
const TIMEFORMAT_SHORT = "060102150405Z"
14
const TIMEFORMAT_LONG = "20060102150405Z"
15
@@ -121,7 +121,9 @@ func (c *Certificates) print_expired() {
121
}
122
123
func main() {
124
- file, err := os.Open(FILENAME)
+ filename := flag.String("filename", "index.txt", "Path to our OpenSSL index file")
125
+ flag.Parse()
126
+ file, err := os.Open(*filename)
127
if err != nil {
128
panic(err)
129
0 commit comments