Skip to content

Replace example command line switch (option) abbreviations with their verbose equivalent. #720

@JohnLukeBentley

Description

@JohnLukeBentley

Throughout the book there are command line examples. For example in Ch. Git Basics, sec. Recording Changes to The Repository, sub. sec. Committing Your Changes (p. 55 in the pdf) there is

$ git commit -m "Story 182: Fix benchmarks for speed"

I suggest, where a command line example includes an switch (option), the verbose version of a switch be used. As in ...

$ git commit --message "Story 182: Fix benchmarks for speed"

To a new user the verbose version of a switch makes it more apparent what the switch does. It's far more readable. As a new user becomes more familiar with the command it is easy, then, to learn the abbreviated version of a switch (e.g. through git commit -help; git commit -h; or git commit --help).

As far as I know almost all abbreviated switches have a verbose equivalent (but not the converse). There might be some exceptions. The help example I've given is one tricky exception (git commit -help; and git commit -h output to the command line. git commit --help outputs by opening a url in a browser).

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