summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2024-10-15 10:00:18 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-10-25 15:40:03 +0100
commitb5f17d0334532a475eb05f6dc7e7e39187d2573e (patch)
treef49476f94255e7286071cec84232aed6f114bb90
parentf94bd6fe97d088a16578d088a1735b272e72c4d0 (diff)
downloadpoky-b5f17d0334532a475eb05f6dc7e7e39187d2573e.tar.gz
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>
-rwxr-xr-xbitbake/bin/bitbake-hashclient15
1 files changed, 14 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake-hashclient b/bitbake/bin/bitbake-hashclient
index 5d6f67046b..a50701a88b 100755
--- a/bitbake/bin/bitbake-hashclient
+++ b/bitbake/bin/bitbake-hashclient
@@ -17,6 +17,7 @@ import warnings
17import netrc 17import netrc
18import json 18import json
19import statistics 19import statistics
20import textwrap
20warnings.simplefilter("default") 21warnings.simplefilter("default")
21 22
22try: 23try:
@@ -265,7 +266,19 @@ def main():
265 print(f"Max time is: {max(times):.3f}s") 266 print(f"Max time is: {max(times):.3f}s")
266 return 0 267 return 0
267 268
268 parser = argparse.ArgumentParser(description='Hash Equivalence Client') 269 parser = argparse.ArgumentParser(
270 formatter_class=argparse.RawDescriptionHelpFormatter,
271 description='Hash Equivalence Client',
272 epilog=textwrap.dedent(
273 """
274 Possible ADDRESS options are:
275 unix://PATH Connect to UNIX domain socket at PATH
276 ws://HOST[:PORT] Connect to websocket at HOST:PORT (default port is 80)
277 wss://HOST[:PORT] Connect to secure websocket at HOST:PORT (default port is 443)
278 HOST:PORT Connect to TCP server at HOST:PORT
279 """
280 ),
281 )
269 parser.add_argument('--address', default=DEFAULT_ADDRESS, help='Server address (default "%(default)s")') 282 parser.add_argument('--address', default=DEFAULT_ADDRESS, help='Server address (default "%(default)s")')
270 parser.add_argument('--log', default='WARNING', help='Set logging level') 283 parser.add_argument('--log', default='WARNING', help='Set logging level')
271 parser.add_argument('--login', '-l', metavar="USERNAME", help="Authenticate as USERNAME") 284 parser.add_argument('--login', '-l', metavar="USERNAME", help="Authenticate as USERNAME")