Skip to content

Commit da515e4

Browse files
authored
Merge pull request #11789 from owncloud/fix/ocisdev-439-pt2
fix: [OCISDEV-439] cli, move stuck share, consistent flags
2 parents 0df93db + a3abfe8 commit da515e4

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

ocis/pkg/command/shares.go

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,19 +159,21 @@ func moveStuckUploadBlobsCmd(cfg *config.Config) *cli.Command {
159159
Usage: "Dry run mode enabled",
160160
},
161161
&cli.StringFlag{
162-
Name: "ocis-home",
163-
Value: "~/.ocis",
164-
Usage: "oCIS home directory",
162+
Name: "basepath",
163+
Aliases: []string{"p"},
164+
Usage: "the basepath of the decomposedfs (e.g. /var/tmp/ocis/storage/users)",
165+
Required: true,
165166
},
166167
&cli.StringFlag{
167168
Name: "filename",
168169
Value: "received.json",
169170
Usage: "File to move from uploads/ to share manager metadata blobs/",
170171
},
171172
&cli.BoolFlag{
172-
Name: "verbose",
173-
Value: false,
174-
Usage: "Verbose logging enabled",
173+
Name: "verbose",
174+
Aliases: []string{"v"},
175+
Value: false,
176+
Usage: "Verbose logging enabled",
175177
},
176178
},
177179
Before: func(c *cli.Context) error {
@@ -199,8 +201,8 @@ func moveStuckUploadBlobsCmd(cfg *config.Config) *cli.Command {
199201
}
200202

201203
ocisHome := filepath.Join(home, ".ocis")
202-
if c.IsSet("ocis-home") {
203-
ocisHome = c.String("ocis-home")
204+
if c.IsSet("basepath") {
205+
ocisHome = c.String("basepath")
204206
}
205207

206208
rootMetadata := filepath.Join(ocisHome, "storage", "metadata")

0 commit comments

Comments
 (0)