Commit a9749f2107

a9749f2107c818c6280a802764e8cb325ffbd862

parent: 3fc5fe7f24

Verified · cmc

cmc <hello@cleberg.net> · 2026-09-24 03:44 UTC

control: examples that run as written

Ref #254
internal/control/mr.go +1 −1
@@ -133,7 +133,7 @@ func init() {
133133 {"--body", "<b>", "the merge request's new body", ""},
134134 {"--file", "-", "read the new body from stdin", ""},
135135 {"--format", "md|org", "the body's markup", ""},
136 {"--superseded-by", "<m>|none", "the MR that replaces this closed one, or none to clear", ""},
136 {"--superseded-by", "<m>|none", "the MR replacing this one, or none to clear", ""},
137137 },
138138 Examples: []string{`mr edit krz/gitbay 431 --title "control: flag help, take two"`},
139139 ReadsStdin: true, Run: runMREdit})
internal/control/search.go +2 −2
@@ -18,8 +18,8 @@ func init() {
1818 {"--kind", "repo|issue|mr", "only this kind of result, may repeat", ""},
1919 },
2020 Examples: []string{
21 "search auth bug",
22 "search auth bug --kind issue",
21 `search "auth bug"`,
22 `search "auth bug" --kind issue`,
2323 },
2424 ReadOnly: true, Run: runSearch})
2525}