feat: Change CUI arguments order to same as grep

This commit is contained in:
2024-01-02 21:52:55 +00:00
parent 0c2e530f3d
commit 89972d8b4e

View File

@@ -14,8 +14,8 @@ import (
// Panics and shows info if arguments are invalid
func ProcessConsoleArguments() (*models.GrepConfigInternal, error) {
var args struct {
Path string `arg:"positional" default:".*" help:"extra RegEx for paths to match"`
Pattern string `arg:"positional" help:"Regex for lines to match"`
Path string `arg:"positional" default:".*" help:"extra RegEx for paths to match"`
}
arg.MustParse(&args)