Add alias for path flag.

This commit is contained in:
Shane Clark
2025-01-23 22:05:18 -07:00
parent 0c7acdfa26
commit 1b79439922
+1 -1
View File
@@ -22,7 +22,7 @@ func main() {
Name: "edas",
Usage: "an api for reading data from elite dangerous",
Flags: []cli.Flag{
&cli.StringFlag{Name: "path", Value: "%USERPROFILE%\\Saved Games\\Frontier Developments\\Elite Dangerous"},
&cli.StringFlag{Name: "path", Value: "%USERPROFILE%\\Saved Games\\Frontier Developments\\Elite Dangerous", Aliases: []string{"p"}},
},
Action: func(ctx context.Context, cmd *cli.Command) error {
r := gin.Default()