use the executable name in the cmd usage doc
This commit is contained in:
@@ -83,7 +83,7 @@ func NewWithConfig(config Config) *PocketBase {
|
|||||||
|
|
||||||
pb := &PocketBase{
|
pb := &PocketBase{
|
||||||
RootCmd: &cobra.Command{
|
RootCmd: &cobra.Command{
|
||||||
Use: "pocketbase",
|
Use: filepath.Base(os.Args[0]),
|
||||||
Short: "PocketBase CLI",
|
Short: "PocketBase CLI",
|
||||||
Version: Version,
|
Version: Version,
|
||||||
FParseErrWhitelist: cobra.FParseErrWhitelist{
|
FParseErrWhitelist: cobra.FParseErrWhitelist{
|
||||||
|
|||||||
Reference in New Issue
Block a user