Skip to content

CLI help text: space-separated paths instead of comma-separated db paths#2015

Open
Chen-Yifan wants to merge 1 commit intomainfrom
vicky/cli-multi-devices
Open

CLI help text: space-separated paths instead of comma-separated db paths#2015
Chen-Yifan wants to merge 1 commit intomainfrom
vicky/cli-multi-devices

Conversation

@Chen-Yifan
Copy link
Contributor

No description provided.

correctly indicate it accepts space-separated database paths instead
of comma-separated paths.
Copilot AI review requested due to automatic review settings January 6, 2026 20:45
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR corrects the CLI help text for the --db option to accurately describe the parameter format. The help text previously stated "comma-separated" but CLI11 (the command-line parsing library used) actually parses vector options as space-separated values by default.

  • Updated help text from "comma-separated" to "space-separated" in two CLI applications

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
cmd/monad_cli.cpp Corrected the help text for the --db option to specify "space-separated" instead of "comma-separated"
cmd/monad/main.cpp Corrected the help text for the --db option to specify "space-separated" instead of "comma-separated"

Review Notes:

The changes in this PR are correct and align with how CLI11 actually parses vector options. CLI11 uses space-separated values by default when parsing options into std::vector types, not comma-separated values. The updated help text now accurately reflects the actual parsing behavior.

I noticed that there are two additional files in the codebase (category/mpt/bench/async_read_bench.cpp and category/mpt/test/read_only_db_stress_test.cpp) that still contain the incorrect "comma-separated" description for similar --db options. While these are outside the scope of this PR, they should be updated in a follow-up for consistency across the codebase.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants