square / cocoapods-pack

A CocoaPods plugin for producing xcframeworks from podspecs.
Apache License 2.0
115 stars 7 forks source link

`--skip-platforms="watchos,tvos"` can work but `--skip-platforms watchos,tvos` would not receive the correct flag #2

Closed imWildCat closed 2 years ago

imWildCat commented 2 years ago

For example,

bundle exec pod pack https://raw.githubusercontent.com/grpc/grpc-swift/main/gRPC-Swift.podspec MySample.zip --out-dir=out3 --skip-platforms="watchos,tvos"

can work

But

bundle exec pod pack https://raw.githubusercontent.com/grpc/grpc-swift/main/gRPC-Swift.podspec MySample.zip --out-dir=out3 --skip-platforms watchos,tvos

cannot work

xuzhongping commented 2 years ago

@imWildCat I think this comes from the command parsing format based on CLAide: An ‘option’ consists of a key, a ‘=’, and a value.

dnkoutso commented 2 years ago

Interesting is this something we can improve @xuzhongping ?

xuzhongping commented 2 years ago

@dnkoutso I don’t know if this improvement is very necessary.

dnkoutso commented 2 years ago

Going to close for now. I think this is deep into CLAide which is what this is using.