mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
bitbake: bitbake-hashclient: Add help for address
Adds an epilog to the help text that indicates the possible options for the server address (Bitbake rev: b6b703fce02057212ad11b1d1286c6178c533bad) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f94bd6fe97
commit
b5f17d0334
@@ -17,6 +17,7 @@ import warnings
|
|||||||
import netrc
|
import netrc
|
||||||
import json
|
import json
|
||||||
import statistics
|
import statistics
|
||||||
|
import textwrap
|
||||||
warnings.simplefilter("default")
|
warnings.simplefilter("default")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -265,7 +266,19 @@ def main():
|
|||||||
print(f"Max time is: {max(times):.3f}s")
|
print(f"Max time is: {max(times):.3f}s")
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description='Hash Equivalence Client')
|
parser = argparse.ArgumentParser(
|
||||||
|
formatter_class=argparse.RawDescriptionHelpFormatter,
|
||||||
|
description='Hash Equivalence Client',
|
||||||
|
epilog=textwrap.dedent(
|
||||||
|
"""
|
||||||
|
Possible ADDRESS options are:
|
||||||
|
unix://PATH Connect to UNIX domain socket at PATH
|
||||||
|
ws://HOST[:PORT] Connect to websocket at HOST:PORT (default port is 80)
|
||||||
|
wss://HOST[:PORT] Connect to secure websocket at HOST:PORT (default port is 443)
|
||||||
|
HOST:PORT Connect to TCP server at HOST:PORT
|
||||||
|
"""
|
||||||
|
),
|
||||||
|
)
|
||||||
parser.add_argument('--address', default=DEFAULT_ADDRESS, help='Server address (default "%(default)s")')
|
parser.add_argument('--address', default=DEFAULT_ADDRESS, help='Server address (default "%(default)s")')
|
||||||
parser.add_argument('--log', default='WARNING', help='Set logging level')
|
parser.add_argument('--log', default='WARNING', help='Set logging level')
|
||||||
parser.add_argument('--login', '-l', metavar="USERNAME", help="Authenticate as USERNAME")
|
parser.add_argument('--login', '-l', metavar="USERNAME", help="Authenticate as USERNAME")
|
||||||
|
|||||||
Reference in New Issue
Block a user