diff options
Diffstat (limited to 'subcommand.go')
| -rw-r--r-- | subcommand.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subcommand.go b/subcommand.go index b73e933..dff732c 100644 --- a/subcommand.go +++ b/subcommand.go @@ -10,7 +10,7 @@ func (p *Parser) Subcommand() interface{} { if p.lastCmd == nil || p.lastCmd.parent == nil { return nil } - return p.readable(p.lastCmd.dest).Interface() + return p.val(p.lastCmd.dest).Interface() } // SubcommandNames returns the sequence of subcommands specified by the |
