+
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

fix(rome_bin): fix the parsing of the internal CLI arguments for the daemon server in debug mode #3068

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

leops
Copy link
Contributor

@leops leops commented Aug 16, 2022

Summary

The rome_bin distribution is temporarily using "internal" arguments starting with __ to control the daemon server process, but the pico_args library forbids argument names from starting with anything other than - in debug mode. I modified the parsing logic to use a subcommand instead of an argument, since those do not have the same naming restrictions.

Test Plan

This change sits at the very top-level of the entire binary distribution, so it's not really easily testable except by first building the CLI then having the tests actually run the resulting binary. Not impossible, but for now I've just manually run cargo rome-cli-dev __run_server and checked that it didn't panic on start

@leops leops requested a review from a team August 16, 2022 12:41
@leops leops temporarily deployed to aws August 16, 2022 12:41 Inactive
@github-actions
Copy link

@MichaReiser MichaReiser requested a review from xunilrj August 16, 2022 12:58
@leops leops merged commit b03261a into main Aug 17, 2022
@leops leops deleted the fix/daemon-cli-debug branch August 17, 2022 09:52
IWANABETHATGUY pushed a commit to IWANABETHATGUY/tools that referenced this pull request Aug 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载