Closed bjorkstromm closed 8 years ago
Should also functions such as __dnvm_os_runtime_defaults
, __dnvm_runtime_bitness_defaults
, __dnvm_find_latest
and __dnvm_find_package
have case insensitive parameters? Now commands like e.g. dnvm install latest -r CoreCLR
and dnvm install 1.0.0-beta7 -r CoreCLR
will fail.
Yeah, to me it looks like install/upgrade should behave the same way when it comes to -r
cc: @glennc
I suppose it should be same behavior when it comes to parameters -a|-arch
and -OS
. At least Windows (ps1) treats all these parameters as case insensitive.
Cool, thanks. Could you send an update? :smile:
Refactored, and rebased.
Added function __dnvm_to_lower
which is called on all occurrences of -r|-runtime
, -a|-arch
and -OS
parameters.
This should now be consistent with Windows.
Awesome, thanks!
@BrennanConroy please review and merge at your convenience. :)
Really happy that we got a PR with a test included :+1:
Agreed with @glennc , thanks @mholo65! @BrennanConroy will merge this in when he's back in the office.
__dnvm_requested_version_or_alias
parameters are now case insensitive and dnvm alias can now take 9 parameters.This fixes #449 and also other issues caused by case sensitivity in commands using
__dnvm_requested_version_or_alias
Was this also an issue on Windows? Not currently near a Windows machine so I can't verify.
//cc @muratg @glennc @BrennanConroy