Add support for "event"-like interface to parsing
and drop the querier
This commit is contained in:
@@ -29,7 +29,7 @@ func main() {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
ast := argh.NewQuerier(pt.Nodes).AST()
|
||||
ast := argh.ToAST(pt.Nodes)
|
||||
|
||||
if asJSON {
|
||||
b, err := json.MarshalIndent(ast, "", " ")
|
||||
|
Reference in New Issue
Block a user