updated distributed python examples a bit to clean things up
This commit is contained in:
parent
78f981463d
commit
630b44627c
11 changed files with 46 additions and 167 deletions
15
daemon/examples/python/distributed_parser.py
Normal file
15
daemon/examples/python/distributed_parser.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
import argparse
|
||||
|
||||
|
||||
def parse(name):
|
||||
parser = argparse.ArgumentParser(description=f"Run {name} example")
|
||||
parser.add_argument(
|
||||
"-a",
|
||||
"--address",
|
||||
help="local address that distributed servers will use for gre tunneling",
|
||||
)
|
||||
parser.add_argument(
|
||||
"-s", "--server", help="distributed server to use for creating nodes"
|
||||
)
|
||||
options = parser.parse_args()
|
||||
return options
|
Loading…
Add table
Add a link
Reference in a new issue