Add mutually exclusive flags to targets command
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ func init() {
|
|||||||
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
|
// Mark output flag as required
|
||||||
targetsCmd.MarkFlagRequired("output")
|
targetsCmd.MarkFlagsMutuallyExclusive("external", "internal", "subdomains", "emails")
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
Reference in New Issue
Block a user