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

add command-line options #74

Closed
yeranya opened this issue Jan 17, 2024 · 3 comments · Fixed by #90
Closed

add command-line options #74

yeranya opened this issue Jan 17, 2024 · 3 comments · Fixed by #90

Comments

@yeranya
Copy link
Contributor

yeranya commented Jan 17, 2024

add command-line options, possibly in the style -o args / --option args

the current way command-line arguments are handled is not ideal, if specifying a port it must be the first argument, and dev mode is enabled by providing at minimum 2 arguments.

sidenote: dev mode is something that appears to increase verbosity of errors, disable downloading of the game mod, and disable game auto start functionality, these could be their own options

command-line options that could be possibly implemented are:

  • -p PORT, --port PORT to specify a port to be used
  • -v, --verbose to increase verbosity of errors and whatnot
  • -g, --no-download to avoid downloading the game mod (-g: don't Get)
  • -l, --no-launch to avoid launching the game (-l: don't Launch)
  • -a ARGS, --beamng-args ARGS to specify arguments to be passed to the BeamNG launcher, possibly like -a '-gfx vk'?
  • possibly another one equivalent to specifying -vgl similar to what dev mode was?
  • in the event there's only one argument given and this could be a valid port number, maybe set it as the port to use, for backwards-compatibility reasons.

this software is made for windows, so windows style command-line options may be better? or maybe the style BeamNG (similar to Xorg) uses?

@lionkor lionkor moved this to In progress in Development Jan 17, 2024
@lionkor lionkor self-assigned this Jan 17, 2024
@lionkor
Copy link
Member

lionkor commented Jan 17, 2024

Acceptance Criteria

  • -p PORT, --port PORT
  • -v, --verbose
  • -- to end launcher arguments, any arguments beyond are passed to the game
  • --dev or the old 0 0 dev mode

@Protogen187
Copy link

Protogen187 commented Sep 8, 2024

In addition an option like [-L --Location] to print the current directory of the BeamMP-Launcher as well as the BeamNG userfolder location would be nice to have

@WiserTixx
Copy link
Collaborator

WiserTixx commented Sep 8, 2024

In addition an option like [-L --Location] to print the current directory of the BeamMP-Launcher as well as the BeamNG userfolder location would be nice to have

f94b9ad
The printing/logging of the beamng user folder was recently added and should be available in the next release

lionkor added a commit that referenced this issue Oct 6, 2024
This PR adds command-line options as outlined in #74 

Closes #74
@github-project-automation github-project-automation bot moved this from In progress to Done in Development Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants