================
@@ -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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to