File: error.go

package info (click to toggle)
gitlab-shell 14.35.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,652 kB
  • sloc: ruby: 1,129; makefile: 583; sql: 391; sh: 384
file content (12 lines) | stat: -rw-r--r-- 375 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
package cli

import "fmt"

// RequiredFlagError type is needed to produce the same error message as one from the
// github.com/urfave/cli/v2 package. Unfortunately the errRequiredFlags type is not
// exportable, and we can't utilise it.
type RequiredFlagError string

func (rf RequiredFlagError) Error() string {
	return fmt.Sprintf("Required flag %q not set", string(rf))
}