zbopt.ggo 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # ZBlacklist Copyright 2014 Regents of the University of Michigan
  2. # Licensed under the Apache License, Version 2.0 (the "License"); you may not
  3. # use this file except in compliance with the License. You may obtain a copy of
  4. # the License at http://www.apache.org/licenses/LICENSE-2.0
  5. # zblacklist option description to be processed by gengetopt
  6. package "zblacklist"
  7. version "2.1.0-RC1"
  8. purpose "A tool for limiting and deduplicating a list of IP addresses"
  9. section "Basic arguments"
  10. option "blacklist-file" b "File of subnets to exclude, in CIDR notation, one-per line."
  11. optional string
  12. option "whitelist-file" w "File of subnets to include, in CIDR notation, one-per line."
  13. optional string
  14. option "log-file" l "File to log to"
  15. optional string
  16. option "verbosity" v "Set log level verbosity (0-5, default 3)"
  17. default="3"
  18. optional int
  19. option "no-duplicate-checking" - "Don't deduplicate IP addresses (default false)"
  20. optional
  21. option "ignore-blacklist-errors" - "Ignore invalid entires in the blacklist/whitelist (default false)"
  22. optional
  23. section "Additional options"
  24. option "help" h "Print help and exit"
  25. optional
  26. option "version" V "Print version and exit"
  27. optional
  28. section "Notes"
  29. text
  30. "At least one of --whitelist-file or --blacklist-file must be specified. Blacklist files take precedence over whitelist files when both are specified. This results in an output of {whitelist - blacklist}."