-
Notifications
You must be signed in to change notification settings - Fork 709
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
Improve Client CLI help readability #2073
Conversation
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.
The small things ❤️
bot fmt |
@bkchr https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/4115284 was started for your command Comment |
@bkchr Command |
@davxy rustdoc test is still failing. |
…dot-sdk into davxy-make-cli-help-readable
Currently the CLI `-h/--help` commad output is almost unreadable as (for some commands) it: - doesn't provide a short brief of what the command does. - doesn't separate the options description in smaller paragraphs. - doesn't use a smart wrap strategy for lines longer than the number of columns in the terminal. Follow some pics taken with a 100 cols wide term ## Short help (./node -h) ### Before ![20231028-174531-grim](https://github.com/paritytech/polkadot-sdk/assets/8143589/11b62c3c-dcd5-43f4-ac58-f1b299e3f4b9) ### After ![20231028-175041-grim](https://github.com/paritytech/polkadot-sdk/assets/8143589/dc08f6fd-b287-40fb-8b33-71a185922104) ## Long help (./node --help) ### Before ![20231028-175257-grim](https://github.com/paritytech/polkadot-sdk/assets/8143589/9ebdc0ae-54ee-4760-b873-a7e813523cb6) ### After ![20231028-175155-grim](https://github.com/paritytech/polkadot-sdk/assets/8143589/69cbe5cb-eb2f-46a5-8ebf-76c0cf8c4bad) --------- Co-authored-by: command-bot <>
* removed obsolete check that is superseded by the unblock checks below * if messages race transaction submit has failed, do not restart loop. Instead, wait for new best nonces from target node and retry selection. That's because submit has probably failed because other relayer has submitted same nonces * reset nonces_to_submit and nonces_submitted if at least one of selected/submitted nonces is already at target * removed extra check
* removed obsolete check that is superseded by the unblock checks below * if messages race transaction submit has failed, do not restart loop. Instead, wait for new best nonces from target node and retry selection. That's because submit has probably failed because other relayer has submitted same nonces * reset nonces_to_submit and nonces_submitted if at least one of selected/submitted nonces is already at target * removed extra check
* removed obsolete check that is superseded by the unblock checks below * if messages race transaction submit has failed, do not restart loop. Instead, wait for new best nonces from target node and retry selection. That's because submit has probably failed because other relayer has submitted same nonces * reset nonces_to_submit and nonces_submitted if at least one of selected/submitted nonces is already at target * removed extra check
* removed obsolete check that is superseded by the unblock checks below * if messages race transaction submit has failed, do not restart loop. Instead, wait for new best nonces from target node and retry selection. That's because submit has probably failed because other relayer has submitted same nonces * reset nonces_to_submit and nonces_submitted if at least one of selected/submitted nonces is already at target * removed extra check
* removed obsolete check that is superseded by the unblock checks below * if messages race transaction submit has failed, do not restart loop. Instead, wait for new best nonces from target node and retry selection. That's because submit has probably failed because other relayer has submitted same nonces * reset nonces_to_submit and nonces_submitted if at least one of selected/submitted nonces is already at target * removed extra check
* removed obsolete check that is superseded by the unblock checks below * if messages race transaction submit has failed, do not restart loop. Instead, wait for new best nonces from target node and retry selection. That's because submit has probably failed because other relayer has submitted same nonces * reset nonces_to_submit and nonces_submitted if at least one of selected/submitted nonces is already at target * removed extra check
* removed obsolete check that is superseded by the unblock checks below * if messages race transaction submit has failed, do not restart loop. Instead, wait for new best nonces from target node and retry selection. That's because submit has probably failed because other relayer has submitted same nonces * reset nonces_to_submit and nonces_submitted if at least one of selected/submitted nonces is already at target * removed extra check
* removed obsolete check that is superseded by the unblock checks below * if messages race transaction submit has failed, do not restart loop. Instead, wait for new best nonces from target node and retry selection. That's because submit has probably failed because other relayer has submitted same nonces * reset nonces_to_submit and nonces_submitted if at least one of selected/submitted nonces is already at target * removed extra check
* removed obsolete check that is superseded by the unblock checks below * if messages race transaction submit has failed, do not restart loop. Instead, wait for new best nonces from target node and retry selection. That's because submit has probably failed because other relayer has submitted same nonces * reset nonces_to_submit and nonces_submitted if at least one of selected/submitted nonces is already at target * removed extra check
* removed obsolete check that is superseded by the unblock checks below * if messages race transaction submit has failed, do not restart loop. Instead, wait for new best nonces from target node and retry selection. That's because submit has probably failed because other relayer has submitted same nonces * reset nonces_to_submit and nonces_submitted if at least one of selected/submitted nonces is already at target * removed extra check
* removed obsolete check that is superseded by the unblock checks below * if messages race transaction submit has failed, do not restart loop. Instead, wait for new best nonces from target node and retry selection. That's because submit has probably failed because other relayer has submitted same nonces * reset nonces_to_submit and nonces_submitted if at least one of selected/submitted nonces is already at target * removed extra check
* removed obsolete check that is superseded by the unblock checks below * if messages race transaction submit has failed, do not restart loop. Instead, wait for new best nonces from target node and retry selection. That's because submit has probably failed because other relayer has submitted same nonces * reset nonces_to_submit and nonces_submitted if at least one of selected/submitted nonces is already at target * removed extra check
* removed obsolete check that is superseded by the unblock checks below * if messages race transaction submit has failed, do not restart loop. Instead, wait for new best nonces from target node and retry selection. That's because submit has probably failed because other relayer has submitted same nonces * reset nonces_to_submit and nonces_submitted if at least one of selected/submitted nonces is already at target * removed extra check
* removed obsolete check that is superseded by the unblock checks below * if messages race transaction submit has failed, do not restart loop. Instead, wait for new best nonces from target node and retry selection. That's because submit has probably failed because other relayer has submitted same nonces * reset nonces_to_submit and nonces_submitted if at least one of selected/submitted nonces is already at target * removed extra check
* removed obsolete check that is superseded by the unblock checks below * if messages race transaction submit has failed, do not restart loop. Instead, wait for new best nonces from target node and retry selection. That's because submit has probably failed because other relayer has submitted same nonces * reset nonces_to_submit and nonces_submitted if at least one of selected/submitted nonces is already at target * removed extra check
* removed obsolete check that is superseded by the unblock checks below * if messages race transaction submit has failed, do not restart loop. Instead, wait for new best nonces from target node and retry selection. That's because submit has probably failed because other relayer has submitted same nonces * reset nonces_to_submit and nonces_submitted if at least one of selected/submitted nonces is already at target * removed extra check
Currently the CLI
-h/--help
commad output is almost unreadable as (for some commands) it:Follow some pics taken with a 100 cols wide term
Short help (./node -h)
Before
After
Long help (./node --help)
Before
After