stephencelis/ghi

ghi open: Support multiple occurences of "-m" option to set title and description comment in one go like "git commit" does

Aberta

#260 aberto em 28 de nov. de 2015

 (2 comentários) (0 reação) (0 responsável)Ruby (134 forks)github user discovery
featurehelp wanted

Métricas do repositório

Stars
 (2.122 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

The command "git commit" features the "-m" option like ghi but allows multiple occurences. The help of "git commit" says:

   -m <msg>, --message=<msg>
       Use the given <msg> as the commit message.
       If multiple -m options are given, their values are
       concatenated as separate paragraphs.

Currently, ghi takes a second -m option which overwrites the first argument, i.e. re-sets the title. Adding text with newlines as argument to -m does split into title and description already, like this

$ ghi open -m "test issue4
> this should go into description"

but this is not a very convenient style and unusual. Also, the help message does not tell about it. I did take a look into the source code to see this :-)

Guia do colaborador