Clarify command descriptions when no arguments are taken #496
No reviewers
Labels
No Label
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind
enhancement
kind
feature
kind/proposal
kind
question
kind
refactor
kind/security
kind/testing
kind/translation
priority/critical
priority/high
priority/low
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/has-backport
status/has-pull
status/needs-backport
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/sdk
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#496
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "noerw/tea:fix-483-2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This changes the command help string from eg
to
Hopefully improving usability.
edit: this also changes
tea release create
to take the--tag
flag value optionally via the first argument, as this seems to be a clear UX improvement.fixes #483
@ -19,6 +19,7 @@ var CmdIssuesCreate = cli.Command{
Aliases: []string{"c"},
Usage: "Create an issue on repository",
Description: `Create an issue on repository`,
ArgsUsage: " ", // command does not accept arguments
Why not empty string?
that would be the default value and we would have the behavior form before
@ -67,1 +68,4 @@
tag := ctx.String("tag")
if cmd.Args().Present() {
if len(tag) != 0 {
Wouldn't it be better to only error when
--tag <t1>
!=<t2>
?no I would error to "educate the users"