Skip to content

Commit 913b7ac

Browse files
committed
Remove shorthand for the nmap port specification.
Fixes #67
1 parent 94b9591 commit 913b7ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/nmap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func init() {
114114
nmapCmd.Flags().StringVarP(&options.NmapFile, "file", "f", "", "nmap xml file")
115115
nmapCmd.Flags().StringSliceVarP(&options.NmapService, "service", "n", []string{}, "map service name filter. supports multiple --service flags")
116116
nmapCmd.Flags().StringVarP(&options.NmapServiceContains, "service-contains", "w", "", "partial service name filter (aka: contains)")
117-
nmapCmd.Flags().IntSliceVarP(&options.NmapPorts, "port", "p", []int{}, "ports filter. supports multiple --port flags")
117+
nmapCmd.Flags().IntSliceVar(&options.NmapPorts, "port", []int{}, "ports filter. supports multiple --port flags")
118118
nmapCmd.Flags().BoolVarP(&options.NmapScanHostanmes, "scan-hostnames", "N", false, "scan hostnames (useful for virtual hosting)")
119119
nmapCmd.Flags().BoolVarP(&options.NoHTTP, "no-http", "s", false, "do not try using http://")
120120
nmapCmd.Flags().BoolVarP(&options.NoHTTPS, "no-https", "S", false, "do not try using https://")

0 commit comments

Comments
 (0)