Skip to content

Which sections should a man page have? #1

Description

@yoshuawuyts

I'm thinking almost all sections should be optional, but we want to somewhat restrict which sections are possible. Which sections should we have?

From what I've seen, we should probably support the following sections:

Required

This should probably be part of the ::new() constructor?

  • Name: name of the project (to be displayed at the top)
  • Version: version (to be displayed at the bottom)

Optional

  • Synopsis: quite similar to the short output of -h in CLIs
  • Description: what does this CLI do?
  • Authors: who wrote this?
  • Flags: which CLI flags can be passed?
  • Options: which CLI flags that require arguments can be passed
  • See Also: related projects
  • Files: which files does this project use (e.g. ~/.ifconfig)
  • Exit Codes: what are the possible exit codes?
  • Environment Variables: which env vars are checked?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions