This commit is contained in:
Lasse Blaauwbroek
2023-06-08 02:29:24 +02:00
parent 97bdeaea12
commit b29f18ed64
9 changed files with 9 additions and 18 deletions

View File

@@ -25,8 +25,7 @@ class PowerFunction(calculator_capnp.Calculator.Function.Server):
def parse_args(): def parse_args():
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
usage="Connects to the Calculator server \ usage="Connects to the Calculator server at the given address and does some RPCs"
at the given address and does some RPCs"
) )
parser.add_argument("host", help="HOST:PORT") parser.add_argument("host", help="HOST:PORT")

View File

@@ -116,8 +116,7 @@ async def new_connection(stream):
def parse_args(): def parse_args():
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
usage="""Runs the server bound to the\ usage="""Runs the server bound to the given address/port ADDRESS. """
given address/port ADDRESS. """
) )
parser.add_argument("address", help="ADDRESS:PORT") parser.add_argument("address", help="ADDRESS:PORT")

View File

@@ -10,8 +10,7 @@ import thread_capnp
def parse_args(): def parse_args():
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
usage="Connects to the Example thread server \ usage="Connects to the Example thread server at the given address and does some RPCs"
at the given address and does some RPCs"
) )
parser.add_argument("host", help="HOST:PORT") parser.add_argument("host", help="HOST:PORT")

View File

@@ -16,8 +16,7 @@ this_dir = os.path.dirname(os.path.abspath(__file__))
def parse_args(): def parse_args():
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
usage="Connects to the Example thread server \ usage="Connects to the Example thread server at the given address and does some RPCs"
at the given address and does some RPCs"
) )
parser.add_argument("host", help="HOST:PORT") parser.add_argument("host", help="HOST:PORT")

View File

@@ -31,8 +31,7 @@ async def new_connection(stream):
def parse_args(): def parse_args():
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
usage="""Runs the server bound to the\ usage="""Runs the server bound to the given address/port ADDRESS. """
given address/port ADDRESS. """
) )
parser.add_argument("address", help="ADDRESS:PORT") parser.add_argument("address", help="ADDRESS:PORT")

View File

@@ -9,8 +9,7 @@ import addressbook_capnp
def parse_args(): def parse_args():
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
usage="Connects to the Example thread server \ usage="Connects to the Example thread server at the given address and does some RPCs"
at the given address and does some RPCs"
) )
parser.add_argument("host", help="HOST:PORT") parser.add_argument("host", help="HOST:PORT")

View File

@@ -43,8 +43,7 @@ async def new_connection(stream):
def parse_args(): def parse_args():
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
usage="""Runs the server bound to the\ usage="""Runs the server bound to the given address/port ADDRESS. """
given address/port ADDRESS. """
) )
parser.add_argument("address", help="ADDRESS:PORT") parser.add_argument("address", help="ADDRESS:PORT")

View File

@@ -31,8 +31,7 @@ class PowerFunction(calculator_capnp.Calculator.Function.Server):
def parse_args(): def parse_args():
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
usage="Connects to the Calculator server \ usage="Connects to the Calculator server at the given address and does some RPCs"
at the given address and does some RPCs"
) )
parser.add_argument("host", help="HOST:PORT") parser.add_argument("host", help="HOST:PORT")

View File

@@ -132,8 +132,7 @@ class CalculatorImpl(calculator_capnp.Calculator.Server):
def parse_args(): def parse_args():
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
usage="""Runs the server bound to the\ usage="""Runs the server bound to the given address/port ADDRESS. """
given address/port ADDRESS. """
) )
parser.add_argument("address", help="ADDRESS:PORT") parser.add_argument("address", help="ADDRESS:PORT")