Project

General

Profile

Bug #26960

The --fields option lacks help

Added by Martin Bacovsky 4 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Category:
Documentation
Target version:
-
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

The --fields option accepts field names or predefined sets. it is not clear what values are available and what fields are printed for specific sets.

I'd love to see some help extension when --fields is defined on the command showing e.g. table like:
currently it is not visible for a user what fields are in which sets. I'd love to see some help extension when --fields is defined on the command showing e.g. table like:

Options:
  --fileds    FIELDS  Show specified fileds or predefined filed sets only. (See below)

...

Predefined field sets:
+--------+-----+---------+------+
| Fields | ALL | DEFAULT | THIN |
+--------+-----+---------+------+
| Id     |  x  |    x    |  x   |
| Name   |  x  |    x    |  x   |
| Param1 |  x  |    x    |      |
| Param2 |  x  |         |      |
+--------+-----+---------+------+

See more context in https://github.com/theforeman/hammer-cli/pull/276#issuecomment-452133084

Associated revisions

Revision fcf679f9 (diff)
Added by Oleh Fedorenko 3 months ago

Fixes #26960 - The --fields option has set help (#308)

  • Fixes #26960 - The --fields option has set help

Revision 18769065 (diff)
Added by Oleh Fedorenko 3 months ago

Refs #26960 - Unsure minimal label length (#310)

History

#1 Updated by Oleh Fedorenko 4 months ago

  • Assignee set to Oleh Fedorenko
  • Status changed from New to Assigned

#2 Updated by The Foreman Bot 4 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli/pull/308 added

#3 Updated by Oleh Fedorenko 3 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by The Foreman Bot 3 months ago

  • Fixed in Releases hammer-cli-0.18.0 added

#5 Updated by The Foreman Bot 3 months ago

  • Pull request https://github.com/theforeman/hammer-cli/pull/310 added

Also available in: Atom PDF