On Fri, Nov 25, 2022 at 6:10 PM Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> wrote: > > > On Fri, Nov 25 2022, Yoichi Nakayama via GitGitGadget wrote: > > > From: Yoichi Nakayama <yoichi.nakayama@xxxxxxxxx> > > > +use_stdout= > > +while test $# -gt 0; do > > + case "$1" in > > + --stdout) > > + use_stdout=t > > + shift > > Put this "shift".... > > > + ;; > > + --*) > > + usage >&2 > > + exit 1 > > + ;; > > + *) > > + break > > + ;; > > + esac > > ... here instead, as I showed in a comment on 3/3 you'd need to to that, > or copy/paste it for every option once you have >1 option. See > e.g. "test_commit" in "t/test-lib-functions.sh" for a function with that > pattern. Thanks. I'll apply this. -- Yoichi NAKAYAMA