]> git.ipfire.org Git - location/libloc.git/blobdiff - man/location-query.txt
location-query: Support listing networks for xt_geoip
[location/libloc.git] / man / location-query.txt
index 216d1dbeada93f45d96984b48e0fbc6ffe7e04bf..84f0fdcad542d0f5bd450d0078c8b96ff9b78033 100644 (file)
@@ -43,13 +43,22 @@ or countries.
        +
        The search will be performed case-insensitively.
 
-'list-networks-by-as ASN'::
+'list-networks-by-as [--output-format FORMAT] ASN'::
        Lists all networks which belong to this Autonomous System.
+       +
+       The '--output-format' parameter can change the output so that it can be
+       directly loaded into other software. The following options are available:
+       +
+       * 'list' (default): Just lists all networks, one per line
+       * 'xt_geoip': Returns a list of networks to be loaded into the xt_geoip
+         kernel module
 
-'list-networks-by-cc COUNTRY_CODE'::
+'list-networks-by-cc [--output-format FORMAT] COUNTRY_CODE'::
        Lists all networks that belong to a country.
        +
        The country has to be encoded in ISO3166 Alpha-2 notation.
+       +
+       See above for usage of the '--output-format' parameter.
 
 '--help'::
        Shows a short help text on using this program.