Skip to content

Commit 44c0c19

Browse files
authored
feat: add default storage dir for modctl (#39)
Signed-off-by: Gaius <[email protected]>
1 parent 8eb6a1f commit 44c0c19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func init() {
5959

6060
// Bind more cache specific persistent flags.
6161
flags := rootCmd.PersistentFlags()
62-
flags.StringVar(&rootConfig.StoargeDir, "storage-dir", "", "specify the storage directory for modctl")
62+
flags.StringVar(&rootConfig.StoargeDir, "storage-dir", rootConfig.StoargeDir, "specify the storage directory for modctl")
6363

6464
// Bind common flags.
6565
if err := viper.BindPFlags(flags); err != nil {

0 commit comments

Comments
 (0)