Skip to content

Commit a791fe5

Browse files
committed
small changes
1 parent 48e304e commit a791fe5

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

cmd/src/abc_variables_set.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"encoding/json"
77
"fmt"
88
"io"
9-
"slices"
109
"strings"
1110

1211
"github.com/sourcegraph/src-cli/internal/api"
@@ -102,7 +101,6 @@ func runABCVariablesSet(ctx context.Context, client api.Client, instanceID strin
102101
for k := range variables {
103102
keys = append(keys, k)
104103
}
105-
slices.Sort(keys)
106104

107105
for _, k := range keys {
108106
graphqlVariables = append(graphqlVariables, map[string]string{

internal/clicompat/help.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func wrapWithHelpOnUsageError(action cli.ActionFunc) cli.ActionFunc {
2828
return func(ctx context.Context, cmd *cli.Command) error {
2929
err := action(ctx, cmd)
3030
if err != nil && errors.HasType[*cmderrors.UsageError](err) {
31-
_, _ = fmt.Fprintf(cmd.Root().ErrWriter, "error: %s\n", err)
31+
_, _ = fmt.Fprintf(cmd.Root().ErrWriter, "error: %s\n---\n", err)
3232
cli.DefaultPrintHelp(cmd.Root().ErrWriter, cmd.CustomHelpTemplate, cmd)
3333
}
3434
return err

0 commit comments

Comments
 (0)