Is it expected that given a Pants command line I c...
# general
e
Is it expected that given a Pants command line I can no longer tack on a request for help?
I used to throw a
-h
on the end of the command line to get help for relevant options and that seems like it no longer works:
Copy code
$ ./pants --help test src/python/pants/bsp/protocol_test.py
Unknown entity: src/python/pants/bsp/protocol_test.py
$ ./pants test --help src/python/pants/bsp/protocol_test.py
Unknown entity: src/python/pants/bsp/protocol_test.py
$ ./pants test src/python/pants/bsp/protocol_test.py --help
11:00:27.87 [INFO] Completed: Run Pytest - src/python/pants/bsp/protocol_test.py:tests succeeded.

āœ“ src/python/pants/bsp/protocol_test.py:tests succeeded in 1.10s (cached locally).
I have to issue:
Copy code
./pants help test
f
I think @hundreds-father-404 just made a change that impacted single-character options. Does
--help
still work for your use case?
e
Nope.
h
Hm it should work. I'll bisect and look into this, thanks for flagging
e
Oh, I'm involved so I'm happy to bisect and file. I just wanted an ACK that this is no bueno.
I generally have no clue what's deemed good vs bad! So I like to check.
h
I expect it to be https://github.com/pantsbuild/pants/pull/15624. We have a lot of tests in
arg_splitter.py
that
-h
still works, but maybe it wasn't comprehensive enough
e
https://github.com/pantsbuild/pants/issues/15660 - I'll add a bisect to the ticket.
šŸ‘ 1
h
I finished the bug fix I was working on. Would it help for me to take this over? I almost certainly broke this code
e
I fleshed out the ticket and, yeah, there are 2 distinct bugs - 1 in @curved-television-6568's code and 1 in yours.
šŸ‘ 2
h
Thanks, sg
c
@hundreds-father-404 let me know if you want me to look at it at all šŸ™‚
h
If you have time to take a look at your PR, that would be great. I was going to start w/ mine
šŸ‘ 1