Project

General

Profile

Actions

Bug #9684

closed

help output for commands with long descriptions don't wrap nicely

Added by Adam Price over 9 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

When looking at hammer's help output for subcommands, those with long descriptions don't word-wrap nicely.


$ hammer content-report --help
Usage:
    hammer content-report [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    subcommand
 [ARG] ...                     subcommand arguments

Subcommands:
 content-host-status           Show the latest subscription status for a list of
content hosts that have reported their subscription status during a specified
time period. Running this report with minimal parameters will return all status
records for all reported content hosts.
 content-host-trend            Show a listing of all subscription status
snapshots from content hosts which have reported their subscription status in the
specified time period.
 status-trend                  Show the per-day counts of content-hosts, grouped
by subscription status, optionally limited to a date range.

Options:
 -h, --help                    print help

I think something like the follow would be much easier to read:


$ hammer content-report --help
Usage:
    hammer content-report [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    subcommand
 [ARG] ...                     subcommand arguments

Subcommands:
 content-host-status           Show the latest subscription status for a list of
                               content hosts that have reported their
                               subscription status during a specified time
                               period. Running this report with minimal
                               parameters will return all status records for all
                               reported content hosts.

 content-host-trend            Show a listing of all subscription status
                               snapshots from content hosts which have reported
                               their subscription status in the specified time
                               period.

 status-trend                  Show the per-day counts of content-hosts, grouped
                               by subscription status, optionally limited to a
                               date range.

Options:
 -h, --help                    print help

Related issues 1 (0 open1 closed)

Related to Hammer CLI - Tracker #2823: Tracker for usability issuesClosed

Actions
Actions #1

Updated by Tomáš Strachota over 7 years ago

Actions #2

Updated by Ondřej Pražák almost 5 years ago

  • Status changed from New to Closed

content-report command is no longer available and I did not find other commands where the description wraps so I will close for now. We can reopen when we identify commands with this issue.

Actions

Also available in: Atom PDF