flux-core icon indicating copy to clipboard operation
flux-core copied to clipboard

flux-resource: drain help output inconsistent

Open chu11 opened this issue 1 year ago • 1 comments

it took me a little bit to figure out

usage: flux-resource drain [-h] [-f] [-u] [-i TARGETS] [-o FORMAT] [-n]
                           [-L [WHEN]]
                           [targets] ...

positional arguments:
  targets                List of targets to drain (IDSET or HOSTLIST)
  reason                 Reason

should the example at the top be [target] [reason], otherwise the positional arguments "reason" makes little sense?

dunno if argparse can fix this ... just noticed it

chu11 avatar Jan 19 '24 20:01 chu11

I think the ... refers to reason, but yeah probably a side effect of using argparse. There may be some way to fix it but it is probably pretty low priority. The man page does state: flux resource drain [-f] [-u] [targets] [reason]

grondo avatar Jan 19 '24 21:01 grondo