From 29e1a644a888992dd8b1646565d8247597f18565 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 10 Dec 2024 11:10:30 -0300 Subject: cmd/: Simplify flag usage --- cmd/vartan/test.go | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'cmd/vartan/test.go') diff --git a/cmd/vartan/test.go b/cmd/vartan/test.go index 73949e0..25bd27f 100644 --- a/cmd/vartan/test.go +++ b/cmd/vartan/test.go @@ -8,18 +8,7 @@ import ( "tester" ) -/* -func init() { - cmd := &cobra.Command{ - Use: "test |", - Short: "Test a grammar", - Example: ` vartan test grammar.vartan test`, - Args: cobra.ExactArgs(2), - RunE: runTest, - } - rootCmd.AddCommand(cmd) -} -*/ + func runTest(args []string) error { gram, _, err := readGrammar(args[0]) -- cgit v1.2.3