Update description

This commit is contained in:
Be
2024-02-29 14:54:45 +01:00
parent add8088585
commit 9dc6d464d4
2 changed files with 4 additions and 4 deletions

View File

@@ -33,17 +33,17 @@
1. Run the script with the AS number as an argument: 1. Run the script with the AS number as an argument:
```bash ```bash
python ASList.py AS61280 python as_network_list.py AS61280
``` ```
2. If you want to disable all output except the prefixes, use the --quiet or -q switch: 2. If you want to disable all output except the prefixes, use the --quiet or -q switch:
```bash ```bash
python ASList.py AS61280 --quiet python as_network_list.py AS61280 --quiet
``` ```
3. If you run the script with the -h or --help switch, it will print a help message: 3. If you run the script with the -h or --help switch, it will print a help message:
```bash ```bash
python ASList.py --help python as_network_list.py --help
``` ```

View File

@@ -14,7 +14,7 @@ def get_as_prefixes(asn):
return [] return []
def main(): def main():
parser = argparse.ArgumentParser(description='Get prefixes announced by an AS.') parser = argparse.ArgumentParser(description='./as_network_list.py -q AS61280')
parser.add_argument('asn', help='The AS number to get prefixes for.') parser.add_argument('asn', help='The AS number to get prefixes for.')
parser.add_argument('-q', '--quiet', action='store_true', help='Disable all output except prefixes.') parser.add_argument('-q', '--quiet', action='store_true', help='Disable all output except prefixes.')
args = parser.parse_args() args = parser.parse_args()