mirror of
https://github.com/C24Be/AS_Network_List.git
synced 2026-01-25 23:35:41 +03:00
Update description
This commit is contained in:
@@ -33,17 +33,17 @@
|
||||
1. Run the script with the AS number as an argument:
|
||||
|
||||
```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:
|
||||
|
||||
```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:
|
||||
|
||||
```bash
|
||||
python ASList.py --help
|
||||
python as_network_list.py --help
|
||||
```
|
||||
|
||||
@@ -14,7 +14,7 @@ def get_as_prefixes(asn):
|
||||
return []
|
||||
|
||||
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('-q', '--quiet', action='store_true', help='Disable all output except prefixes.')
|
||||
args = parser.parse_args()
|
||||
|
||||
Reference in New Issue
Block a user