We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e37e2b commit 72c1ed1Copy full SHA for 72c1ed1
sprint/cmd/fingerprintCmd.go
@@ -21,6 +21,11 @@ var (
21
Use: "host [fqdn or ip]",
22
Short: "Get ssl fingerprint of a URL",
23
Run: func(cmd *cobra.Command, args []string) {
24
+ if len(args) == 0 {
25
+ cmd.Help()
26
+ os.Exit(1)
27
+ }
28
+
29
host := args[0]
30
31
// Default to show SHA 1 if no modes are selected
sprint/cmd/matchCmd.go
@@ -14,6 +14,11 @@ var (
14
Use: "match [fqdn or ip] [fingerprint]",
15
Short: "Get ssl fingerprint of a URL and check if it matches the given fqdn or ip",
16
17
18
19
20
domainURL := args[0]
fingerprint := args[1]
0 commit comments