Add detection for incompatible flags with --run-file#1509
Conversation
Signed-off-by: twinguy <[email protected]>
Signed-off-by: twinguy <[email protected]>
Signed-off-by: twinguy <[email protected]>
Signed-off-by: twinguy <[email protected]>
|
@twinguy Thank you for the contribution and the quick fix. |
Signed-off-by: twinguy <[email protected]>
|
@antontroshin Should be all good with latest "go mod tidy". This is my first contribution, so unsure what next steps are for getting final review/merge completed are. Thanks for all the great feedback and help. |
|
@twinguy thanks for your contribution |
|
@holopin-bot @twinguy Thank you! Here's a digital badge as a small token of appreciation. |
|
Congratulations @twinguy, the maintainer of this repository has issued you a badge! Here it is: https://holopin.io/claim/cmbrz7mfw185707lacioonl84 This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account. |
Description
This PR adds detection for incompatible flags when using the
--run-fileflag in thedapr runcommand. When a user tries to use command line flags that are incompatible with the run file configuration, a warning message is now displayed to inform the user that these flags will be ignored and should instead be configured in the run file.Issue reference
Please reference the issue this PR will close: #1508
Changes implemented
--run-fileoptiondetectIncompatibleFlags) that identifies when incompatible flags are being usedgenerateWarningMessage) to create a clear warning for usersBehavior change
Before: When using both
--run-fileand other command-line flags that should be configured in the run file, the command-line flags were silently ignored, potentially causing confusion for users.After: When using both
--run-fileand incompatible command-line flags, a warning message is displayed to inform the user that these flags are ignored and should be configured in the run file.Example warning
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: