check number of arguments
This commit is contained in:
parent
985547acc6
commit
efb8452b0f
1 changed files with 5 additions and 1 deletions
|
@ -23,7 +23,11 @@ def filter_interfaces(network):
|
||||||
return output
|
return output
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main() -> None:
|
||||||
|
if len(sys.argv) < 3:
|
||||||
|
print(f"USAGE: {sys.argv[0]} addresses routes", file=sys.stderr)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
with open(sys.argv[1]) as f:
|
with open(sys.argv[1]) as f:
|
||||||
addresses = json.load(f)
|
addresses = json.load(f)
|
||||||
with open(sys.argv[2]) as f:
|
with open(sys.argv[2]) as f:
|
||||||
|
|
Loading…
Reference in a new issue