Skip to content
This repository has been archived by the owner on Jun 12, 2022. It is now read-only.

Add support for not-hardcoded flags #23

Merged
merged 6 commits into from
Apr 30, 2022

Conversation

Corecii
Copy link
Contributor

@Corecii Corecii commented Apr 29, 2022

Following our discussion in #12 this PR adds support for flags that are not hardcoded into luau-analyze-rojo.

  • Any flag can be specified using --flag:FlagName=value now.
  • bool and int flags are supported. I think these are the only flag types.
  • By default luau-analyze-rojo will check for and fail if you use an invalid flag. This can be disabled particularly for automated workflows since flags may change often and a flag being removed typically won't cause problems. For users it's typically a better experience to warn when an invalid flag has been entered.
  • Flags can be shown by running luau-analyze-rojo --show-flags

@JohnnyMorganz
Copy link
Owner

Can you fix the luau submodule conflict? It seems that your PR is changing the submodule commit

@Corecii
Copy link
Contributor Author

Corecii commented Apr 30, 2022

Should be fixed now!

Copy link
Owner

@JohnnyMorganz JohnnyMorganz left a comment

Choose a reason for hiding this comment

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

Thanks!

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