[Feature Request] Add command-line flags (-h, --version, etc.) #3555
rehashedsalt
started this conversation in
Discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, when ship is invoked with any arguments -- flags or otherwise -- it just launches the game. Per this thread, alternative behavior would be desirable so as to enable things like custom multi-version launchers or to otherwise quickly determine what build a particular binary is.
Right now, we just need two flags:
-h
/--help
: Displays some help text--version
: Displays the version of Ship of Harkinian in a machine-parseable format. The thread suggests${SEMVER} ${CODENAME_MAJOR}-${CODENAME_MINOR} ${GIT_BRANCH} ${GIT_COMMIT_SHORT_HASH} ${BUILD_DATE}
in space-separated arguments. As an example:8.0.0 macready-charlie develop-macready 0ddb071 2023-11-15
. The exact format isn't terribly important, it just needs to be parseable (i.e. don't dash-separate).I'd recommend not aliasing
-v
to--version
so it could be used as an alias for--verbose
later down the line, if configurable log verbosity is something anyone's interested in.Beta Was this translation helpful? Give feedback.
All reactions