@ -7,10 +7,6 @@ type TypedNode struct {
Node Node `json:"node"`
}
type Args struct {
Nodes []Node `json:"nodes"`
type CompoundShortFlag struct {
@ -15,6 +15,7 @@ func TestParser(t *testing.T) {
expPT []argh.Node
expAST []argh.Node
expErr error
skip bool
}{
{
name: "bare",
@ -306,6 +307,10 @@ func TestParser(t *testing.T) {
},
{},
} {
if tc.skip {
continue
if tc.expPT != nil {
t.Run(tc.name+" parse tree", func(ct *testing.T) {
actual, err := argh.ParseArgs(tc.args, tc.cfg)
@ -33,6 +33,12 @@ func TestQuerier_Program(t *testing.T) {
exp: argh.Program{},
expOK: false,
name: "invalid flag only",
args: []string{"--oh-no"},
t.Run(tc.name, func(ct *testing.T) {
pt, err := argh.ParseArgs(tc.args, tc.cfg)