stephencelis/ghi

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

开放

#260 创建于 2015年11月28日

 (2 条评论) (0 个反应) (0 位负责人)Ruby (134 个派生)github user discovery
featurehelp wanted

仓库指标

星标
 (2,122 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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 :-)

贡献者指南