Skip to content

Commit

Permalink
💄 change --skip-summary to --summary
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeous committed Jul 31, 2023
1 parent 4f8d1fe commit 24c52d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var rootCmd = &cobra.Command{
if err != nil {
log.Fatal(err.Error())
}
skipSummary, err := cmd.Flags().GetBool("skip-summary")
showSummary, err := cmd.Flags().GetBool("summary")
if err != nil {
log.Fatal(err.Error())
}
Expand Down Expand Up @@ -95,7 +95,7 @@ var rootCmd = &cobra.Command{
log.Info("Scan complete")

// display results summary
if !skipSummary && singleDomain == "" {
if showSummary {
summary := fmt.Sprintf("Vulnerable domains: %d", fCount)
if mCount > 0 {
summary += fmt.Sprintf(" (%d service matches)", mCount)
Expand Down Expand Up @@ -136,5 +136,5 @@ func init() {
rootCmd.Flags().BoolP("edge-cases", "e", false, "include edge-case fingerprints (might cause false positives)")
rootCmd.Flags().StringP("fingerprints", "f", "", "custom service fingerprints file")
rootCmd.Flags().BoolP("verbose", "v", false, "increase application verbosity")
rootCmd.Flags().BoolP("skip-summary", "s", false, "skip summary at the end of the scan")
rootCmd.Flags().BoolP("summary", "s", false, "show summary at the end of the scan")
}

0 comments on commit 24c52d4

Please sign in to comment.