Skip to content
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

Fix example box_game_spectator.rs #102

Merged
merged 1 commit into from
Feb 4, 2024
Merged

Conversation

AgustinRamiroDiaz
Copy link
Contributor

I was getting an error due to conflicting flags, since -h is reserved as the short for --help, it can't be used as the short for host

> cargo run --example box_gam
e_spectator -- --local-port 7002 --num-players 2 --host 127
.0.0.1:7000
   Compiling bevy_ggrs v0.14.0 (/home/az/dev/bevy_ggrs)
    Finished dev [unoptimized + debuginfo] target(s) in 15.43s
     Running `target/debug/examples/box_game_spectator --local-port 7002 --num-players 2 --host '127.0.0.1:7000'`
thread 'main' panicked at /home/az/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.4.18/src/builder/debug_asserts.rs:112:17:
Command bevy_ggrs: Short option names must be unique for each argument, but '-h' is in use by both 'host' and 'help' (call `cmd.disable_help_flag(true)` to remove the auto-generated `--help`)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Copy link
Collaborator

@johanhelsing johanhelsing left a comment

Choose a reason for hiding this comment

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

Makes sense to me, thanks!

@gschup gschup merged commit 5d3e2ff into gschup:main Feb 4, 2024
1 check passed
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.

3 participants