-
Notifications
You must be signed in to change notification settings - Fork 263
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
support --scale #822
Comments
It could support a range as well, e.g. |
So maybe deprecating
|
I think supporting a range is an ok option, and would prefer “-“ over “..”, but I wouldn’t remove the min and max options though. Doing that would require people to do a get() of some kind to find the current values before they could change just one of them. Meaning, if I don’t know what the current min and max are, but I know I want to set min to zero, I would need to first get() the ksvc to get the max and then do 0-max, where it would be nicer to just do —min-scale=0 |
@duglin With "undefined" in the example above I mean: Leave untouched. In you example, just specify |
I don't like |
re: "undefined"... ah, I missed that. Interesting. My first reaction was that it meant "max" (or "min") based on which side it was on. I wonder if other people will jump to the same incorrect conclusion. re: "-", doi! totally forgot that "-" would be confused with options processing. |
/assign I'm going to work on a single value for now and then maybe range after I get that working. |
@rhuss Do we want to remove the options for --max/--min and replace it with scale with a range? I haven't done enough work on CLI stuff to know if that will upset users who like the --max/--min functionality instead of ranges with one command. If we're down to depreciate min/max scale and just use scale then I can start that work next. Should we discuss this in the client channel or would it be better to have a PR going to see what it looks like? |
my 2 cents...
To me, Is the 2nd syntax solving a pain point? |
IMO, we should keep |
Ok, I see. People love explicit max/min scale ;-), but maybe we can rename them to be close together on the help page. Therefor I suggest:
That way we can keep it compatible for now but would remove then wdyt ? |
@rhuss do we even need to introduce I do like an idea of |
@dsimansk I think the opinions differ here, whether 3 options should be used or only a single one. Technically even
This poll would then be open until next WG call. |
Here's the poll. Please vote only once with 👍 for your favourite option. The poll is open until Tuesday. |
[A]: Use Error on conflicting specification (like it is now already). |
[B]: Use
This example uses the range operator ("..") as known from various programming languages, but the concrete value is not part of this poll option (i.e. can still be discussed) |
[C]: Implement both [A] and [B] to cover beginner and expert user at the same time |
In any case, I sugesst to deprecate |
I'm working on [B] still - been busy trying to help close out some issues for Docs before release. |
@rhuss @maximilien With the recent PR I'm ignoring 0 values. Is it expected that you should use --scale-min 0 to set the min scale to 0? Right now with create or update, if the value is 0 it either doesn't set it, or it doesn't update it. Something like |
Ignoring 0 feels wrong |
@duglin do you have any suggestions about how you would like to see it work? I posted on the issue to get feedback about how it should work so that I can implement it. |
I’m confused, why not just accept and use 0? Why would we ignore it. @rhuss suggested that ..X be used to mean set a max of X but leave the min untouched. |
To add more - keep it simple - for x..y:
so, yes 0..0 is valid since even today we support |
@mpetason Sorry, I'm a bit late to the game (such a busy week it is), but I summarized my thinking in #1070 (comment) The problem I see with the interpretation of using "unchanged" is, that we never have a way to reset a scale-max once it's set. But let discuss over there at the PR ? |
I find myself often needing to do:
--min-scale=X --max-scale=x
, usually when x=1.It might be nice to support a short-cut here:
--scale=x
to mean "set both min & max".Just a thought...
The text was updated successfully, but these errors were encountered: