summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.go b/main.go
index d58fba3..6ea78c1 100644
--- a/main.go
+++ b/main.go
@@ -73,9 +73,16 @@ func main() {
Value: false,
Destination: &ListNoDep,
},
+ &cli.BoolFlag{
+ Name: "no-cache",
+ Aliases: []string{"nc"},
+ Usage: "Disable caching",
+ Value: false,
+ Destination: &NoCache,
+ },
},
Action: func(ctx context.Context, cmd *cli.Command) error {
- return runList()
+ return runList(!NoCache)
},
},
{