Ticket #286 (closed enhancement: fixed)

Opened 4 months ago

Last modified 3 months ago

xapian-inspect.1 COMMANDS

Reported by: rurban Owned by: olly
Priority: normal Milestone: 1.0.8
Component: Other Version: 1.0.7
Severity: normal Keywords:
Cc: Blocked By:
Operating System: All Blocking:

Description

Attached patch adds the interactive commands to xapian-inspect.1

Attachments

xapian-inspect.1.patch (0.9 kB) - added by rurban 4 months ago.

Change History

Changed 4 months ago by rurban

Changed 4 months ago by olly

Hmm, yes, the commands aren't easily discoverable currently.

Problem is this is a generated file, so with this patch we lose the advantages of automatically generating it (that the man page and --help are kept in sync). My experience is that if you have two places independently documenting the same thing, people tend to only update one of them and you end up partly out of date documentation in one or both places. It also adds work even when you do remember.

Also, this list of commands isn't automatically kept in step with the output of the help command, which is another case of the same issue.

The better options seem to be either adding this to the output of xapian-inspect --help (from where it will automatically end up in the man page, and the text can come from the same source as the help command output) or saying "Type 'help' for a list of commands" on start-up. Or perhaps both.

Changed 4 months ago by olly

  • status changed from new to assigned
  • version set to 1.0.7
  • milestone set to 1.0.8

Changed 3 months ago by olly

The commands are now listed when xapian-inspect is run in trunk [11145].

Changed 3 months ago by olly

  • status changed from assigned to closed
  • resolution set to fixed

Backported to 1.0 branch [11146].

Note: See TracTickets for help on using tickets.