-
Notifications
You must be signed in to change notification settings - Fork 0
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
jsmin
should take true
as parameter values
#8
Comments
I think what you're running into is more of a PowerShell issue. Let me exaplain. On When you call When you call OK after that explanation, there is an easy for us to support your suggestion. Since the underlying issue is that powershell is looking for a command named function Invoke-GeoffreyReturnTrue{
[cmdletbinding()]
param()
process{
$true
}
}
set-alias true Invoke-GeoffreyReturnTrue
function Invoke-GeoffreyReturnFalse{
[cmdletbinding()]
param()
process{
$false
}
}
set-alias false Invoke-GeoffreyReturnTrue Thoughts? |
I see. In that case then $true should be fine. However, for Boolean properties should we make it so they don't require a value. Then these would be the same:
|
Oh yeah I'm going to update to convert it to a PowerShell So no need for the |
Setting the parameter MinifyCode to true throws. The value has to be
1|0
instead oftrue|false
Actual
Expected
jsmin -MinifyCode true
or (no value, just the parameter)
jsmin -MinifyCode
The text was updated successfully, but these errors were encountered: