New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fold target help into the help system. #11022
Conversation
Instead of it being the only help-related functionality implemented as a standalone goal. Also replaces `./pants goals` with `./pants help goals`, and makes various other improvements to help, such as not showing global option help when you just enter `./pants help`, so that the usage message fits in a single screen. Addresses pantsbuild#10999. [ci skip-rust] [ci skip-build-wheels]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is excellent! Thank you!
print(f"\nPants {pants_version()}") | ||
print("\nUsage:\n") | ||
print_cmd( | ||
"[option ...] [goal ...] [file/target ...]", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also add options after the specs, which is often much more convenient.
"[option ...] [goal ...] [file/target ...]", | |
"[option ...] [goal ...] [file/target ...] [option ...]", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but only if there are specs, I think. Otherwise the options will be bound to the goal scope, which gets complicated to explain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's correct.
[ci skip-rust] [ci skip-build-wheels] # Conflicts: # src/python/pants/bin/local_pants_runner.py
Instead of it being the only help-related functionality
implemented as a standalone goal.
Also replaces
./pants goals
with./pants help goals
,and makes various other improvements to help, such as
not showing global option help when you just enter
./pants help
, so that the usage message fits in asingle screen.
Addresses #10999.
[ci skip-rust]
[ci skip-build-wheels]