flux-framework/flux-core

cmd output: `flux jobs` accepts but does not print `{user}`

Closed this issue · 2 comments

A trivial issue: the flux jobs -o option accepts a {user} field but doesn't print anything for it, instead it wants {username}. It would be nice if it were rejected or instead supplied with username.

bash-4.4$ flux jobs ƒ2WFJyd8B -o"{id}|{user}"
JOBID|USER
ƒ2WFJyd8B|
bash-4.4$ flux jobs ƒ2WFJyd8B -o"{id}|{username}"
JOBID|USER
ƒ2WFJyd8B|corbett8

I tried to trace down the source of the issue but got lost in the complexity of the formatter class.

{user} prints the user annotations. I hope that's documented, but I agree, it's a bit confusing.