[Lldb-commits] [lldb] [lldb] add --platform-available-ports option to the dotest.py (PR #112555)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 6 05:12:41 PST 2025
================
@@ -292,6 +292,13 @@ def create_parser():
metavar="platform-working-dir",
help="The directory to use on the remote platform.",
)
+ group.add_argument(
+ "--platform-available-ports",
+ dest="lldb_platform_available_ports",
+ type=lambda ports: [int(port.strip()) for port in ports.split(":")],
+ metavar="platform-available-ports",
+ help="Ports available for connection to a lldb server on the remote platform",
+ )
----------------
DavidSpickett wrote:
I would have thought argparse could handle accumulating a list of numbers using https://docs.python.org/3/library/argparse.html#nargs. Does something prevent that here?
Is the intended usage like this:
```
lldb-dotest.py ... --platform-available-ports 1 2 3
```
Or:
```
lldb-dotest.py ... --platform-available-ports "1 2 3"
```
?
https://github.com/llvm/llvm-project/pull/112555
More information about the lldb-commits
mailing list