minio / mc

Unix like utilities for object store
https://min.io/download
GNU Affero General Public License v3.0
2.86k stars 548 forks source link

Usage message for 'ilm rule remove' subcommand is missing --id #4902

Closed TLINDEN closed 6 months ago

TLINDEN commented 6 months ago

NOTE

If this case is urgent, please subscribe to Subnet so that our 24/7 support team may help you faster.

Expected Behavior

The usage message of the subcommand mc ilm rule remove should mention mandatory parameter[s].

Current Behavior

mc ilm rule rm -h doesn't mention that the parameter --id must be provided and that it's mandatory. The website documents it though.

Possible Solution

Enhance the usage message.

Steps to Reproduce (for bugs)

mc ilm rule rm -h

Context

I tried to remove an ilm rule, and according to the current usage text I tried:

mc ilm rule rm s3-b71d733f-5d5a-4496-b083-2b15d9a91c4a/backup-b71d733f 
mc: <ERROR> ilm ID cannot be empty. Invalid arguments provided, please refer `mc <command> -h` for relevant documentation.

but then it was unclear how to actually specify the id.

Regression

n/a

Your Environment

TLINDEN commented 6 months ago

Never mind, the usage is complete. I suspect I issued the wrong -h command.