feat: Change CUI arguments order to same as grep
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user