1 Commits

Author SHA1 Message Date
Evan Hosinski 24b1f99413 Add mutually exclusive flags to targets command 2025-06-03 20:08:40 -04:00
+2 -2
View File
@@ -21,8 +21,8 @@ func init() {
targetsCmd.Flags().BoolVarP(&targetsEmails, "emails", "E", false, "Output emails only (no passwords)") targetsCmd.Flags().BoolVarP(&targetsEmails, "emails", "E", false, "Output emails only (no passwords)")
targetsCmd.Flags().StringVarP(&targetsDomain, "domain", "d", "", "Filter by domain (for emails and subdomains)") targetsCmd.Flags().StringVarP(&targetsDomain, "domain", "d", "", "Filter by domain (for emails and subdomains)")
// Mark output flag as required // Add mutually exclusive flags to targets command
targetsCmd.MarkFlagRequired("output") targetsCmd.MarkFlagsMutuallyExclusive("external", "internal", "subdomains", "emails")
} }
var ( var (