aliyun / aliyun-cli

Alibaba Cloud CLI
Apache License 2.0
827 stars 198 forks source link

Error: parse failed --exclude duplicated #255

Open mutoo opened 4 years ago

mutoo commented 4 years ago

I was trying to list the files in the bucket with multiple exclusion filters.

It should be allowed as it's mentioned in the documentation: https://github.com/aliyun/aliyun-cli/blob/master/oss/lib/ls.go#L44

--include和--exclude可以出现多次。当多个规则出现时,这些规则按从左往右的顺序应用

But it outputs an error saying: "--exclude duplicated"

night556 commented 4 years ago

I was trying to list the files in the bucket with multiple exclusion filters.

It should be allowed as it's mentioned in the documentation: https://github.com/aliyun/aliyun-cli/blob/master/oss/lib/ls.go#L44

--include和--exclude可以出现多次。当多个规则出现时,这些规则按从左往右的顺序应用

But it outputs an error saying: "--exclude duplicated"

  • Command Format:
$ aliyun oss ls oss://my-bucket/ --exclude "*.png" --exclude "*.jpg"
  • Output:
ERROR: parse failed --exclude duplicated

Thank you for your Tssue. For some reasons, the CLI's support for OSS's flag is not perfect. Sorry for the problem. We will record the problem and fix it.

bcuicn commented 3 years ago

Do you have any timeline on when this can be fixed?

AndreasRIHU commented 1 year ago

I would like to emphasize the importance of this issue to be fixed. I'm currently porting our workflow from AWS to Alibaba Cloud and this issue is quite annoying, because I can't use a lot of my scripts which use multiple --exclude's quite often... And changing them isn't an option because it's an error that should work according to the docs. Do you see any chance to accelerate resolving that issue? And/Or: what is the time frame for "next-major-version"? Best regards Andreas