From: Junio C Hamano Date: Fri, 30 Sep 2022 21:28:41 GMT Subject: Re: [PATCH v3 07/36] doc SYNOPSIS & -h: fix incorrect alternates syntax Message-ID: In-Reply-To: Ævar Arnfjörð Bjarmason writes: > Fix the incorrect "[-o | --option ]" syntax, which should be > "[(-o | --option) ]", we were previously claiming that only > the long option accepted the "", which isn't what we meant. It depends on which way you look at it ;-) namely, if vertical bar binds tighter than option and its argument, then "-m|--message " and "(-m|--message) " would mean the same thing. Later in the series, we start insisting that the vertical bar must have SP on both of its sides, which makes the vertical bar less tightly binding visually, and at that point, adding parentheses around the choices does become needed. As long as these become consistent, the end result is happier than the status quo. > - [-u|--include-untracked] [-a|--all] [-m|--message ] > + [-u|--include-untracked] [-a|--all] [(-m|--message) ] > -'git stash' store [-m|--message ] [-q|--quiet] > +'git stash' store [(-m|--message) ] [-q|--quiet] Thanks.