-
-
Notifications
You must be signed in to change notification settings - Fork 38
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 option for no extended chars #393
Conversation
adamralph
commented
Dec 26, 2019
•
edited
Loading
edited
3b8037f
to
0a6023a
Compare
0a6023a
to
8d1b210
Compare
@ygel I've released this in 3.2.0-alpha.2. Would you like to give it a try? |
ping @ygel ☝️ |
Hi @adamralph, thanks for adding this. Is there a way to specify this option without modifying command-line? Would be nice to have it as an arg for calling await bullseyeTargets.RunWithoutExitingAsync(
productBuildTargets,
logPrefix: "Foo",
noExtendedChars: true); This change is confirmed good for my use case. |
@ygel I guess you could construct an instance of Generally, I'm not sure it's a great idea to set this option in code, since it's use is very much dependent on the environment that the build targets are being run in. E.g. when running locally, extended chars are fine, but when running in some CI environment, they aren't. So it's generally better to control this option via the command line. |
Hello, @adamralph, I understand. Your solution covers intended usage from Bullseye POV. At this point I opted to not not expose the runner's command line handling to the user, this might change. Going forward, I think it would be beneficial to have both:
Thank you! |
@ygel you can do this today, but the method is officially "internal", meaning a breaking change could be introduced in a minor: var (targetNames, options) = Bullseye.Internal.StringExtensions.Parse(args);
options.NoExtendedChars = true; I'll consider moving the method to the public namespace.
I'm not sure what you mean by "pass it to the c-tor", but creating an instance of var options = new Options { NoExtendedChars = true }; |
Thank you for looking at it! There's no rush on this at all however, I'm at a stable state for feature freeze and it can wait.
Oh I haven't actually looked at the code for this and was reflecting on your comment from above about possible non-triviality of hand-parsing options. To clarify what I meant by "simplify" is to have Bullseye parse command line and then give the caller an Options object to modify. Having typed all of this out, I now realize that this request is a subset of the one above. |