Commit 26c0d61d07b93e7662f43fa91f36c174b12c7a26
1 parent
164e22f4
Exists in
master
and in
1 other branch
fix defaults and help in redirect.py
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
aprendizations/redirect.py
... | ... | @@ -16,12 +16,12 @@ def main(): |
16 | 16 | 'correct target address.' |
17 | 17 | ) |
18 | 18 | argparser.add_argument( |
19 | - '-p', '--port', type=int, default=8080, | |
20 | - help='Port to listen to (default: 8080)' | |
19 | + '-p', '--port', type=int, default=default_port, | |
20 | + help=f'Port to listen to (default: {default_port})' | |
21 | 21 | ) |
22 | 22 | argparser.add_argument( |
23 | 23 | '-t', '--target', type=str, default=default_url, |
24 | - help='Target address (default: https://bit.xdi.uevora.pt)' | |
24 | + help=f'Target address (default: {default_url})' | |
25 | 25 | ) |
26 | 26 | arg = argparser.parse_args() |
27 | 27 | print(f'Redirecting from port {arg.port} to {arg.target}') | ... | ... |