Hi Scott,
This is not a bug, but only that you are expecting a different behaviour than what the command designer had in mind. Who is correct? Its a matter of opinion. Let me explain you.
The problem you are mentioning comes if I have multi word comment i.e. words separated by a space ex : Hello World
You want to provide the multi word comment without giving any quotes. If you do this the command fails.

So now you want to modify the code adding quotes into the Comemnt string. Seems okay but lets see the other side.
The WFA command designer had other ideas:
He thinks that if a multi-word comment is to be provided, the User needs to provide this argument in double-quotes or single-quotes like : "Hello World" . Else it will take Hello as the only argument to parameter Comment and since won't be able to find any parameter for the World, it fails.

This is not an incorrect expectation. ONTAP CLI expects this, ZAPI expects this, ONTAP PSTK expects this.
f3270-208-238-239-240-241:: > cifs share create -share-name ab_sinha -path / -share-properties oplocks,browsable,changenotify -comment Hello world
Error: "world" was not expected. Please specify -fieldname first.
f3270-208-238-239-240-241:: > cifs share create -share-name ab_sinha -path / -share-properties oplocks,browsable,changenotify -comment "Hello world"
f3270-208-238-239-240-241:: >
Thats why to be on the same line as others, this WFA command should also behave similar.
WFA command is only trying to keep it consistent across all interfaces.
Also if we change the code as per your fix and divert from the regular common behaviour, I migth end up having unexpected behaviour for some othe users in other cases. Example: If I give "Hello World" i.e. doubles quoted values for Comment the result will end up adding quotes also as a part of my comment.
Instead of my comment being Hello World , it will become "Hello World"
The quotes also becomes a part of the comment and I'm thinking it won't. I don't think this would be right.
So if you want to pass multi-word comment, Kindly keep them in double quotes as in the 2nd image above. The WFA command will work just fine.
sinhaa
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.