Skip to content

Commit 39513c6

Browse files
committed
commands(feat): log when invoking deprecated urlstore command
License: MIT Signed-off-by: Steven Allen <[email protected]>
1 parent d140a68 commit 39513c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/commands/urlstore.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var urlAdd = &cmds.Command{
2727
Helptext: cmdkit.HelpText{
2828
Tagline: "Add URL via urlstore.",
2929
LongDescription: `
30-
DEPRECATED: Use 'ipfs add --nocopy URL'.
30+
DEPRECATED: Use 'ipfs add --nocopy --cid-version=1 URL'.
3131
3232
Add URLs to ipfs without storing the data locally.
3333
@@ -48,6 +48,8 @@ settings for 'ipfs add'.
4848
Type: &BlockStat{},
4949

5050
Run: func(req *cmds.Request, res cmds.ResponseEmitter, env cmds.Environment) error {
51+
log.Error("The 'ipfs urlstore' command is deprecated, please use 'ipfs add --nocopy --cid-version=1")
52+
5153
urlString := req.Arguments[0]
5254
if !filestore.IsURL(req.Arguments[0]) {
5355
return fmt.Errorf("unsupported url syntax: %s", urlString)

0 commit comments

Comments
 (0)