Add alias for path flag.
This commit is contained in:
@@ -22,7 +22,7 @@ func main() {
|
|||||||
Name: "edas",
|
Name: "edas",
|
||||||
Usage: "an api for reading data from elite dangerous",
|
Usage: "an api for reading data from elite dangerous",
|
||||||
Flags: []cli.Flag{
|
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 {
|
Action: func(ctx context.Context, cmd *cli.Command) error {
|
||||||
r := gin.Default()
|
r := gin.Default()
|
||||||
|
|||||||
Reference in New Issue
Block a user