mirror of
https://github.com/ipfs/kubo.git
synced 2025-05-20 08:27:29 +08:00
feat: add --long as alias for -l in files.ls
Allow passing --long or ?long=true as a more descriptive option name than "l". refs: https://github.com/ipfs/go-ipfs#issuecomment-392477565
This commit is contained in:
@ -379,7 +379,7 @@ type filesLsOutput struct {
|
||||
}
|
||||
|
||||
const (
|
||||
longOptionName = "l"
|
||||
longOptionName = "long"
|
||||
dontSortOptionName = "U"
|
||||
)
|
||||
|
||||
@ -408,7 +408,7 @@ Examples:
|
||||
cmds.StringArg("path", false, false, "Path to show listing for. Defaults to '/'."),
|
||||
},
|
||||
Options: []cmds.Option{
|
||||
cmds.BoolOption(longOptionName, "Use long listing format."),
|
||||
cmds.BoolOption(longOptionName, "l", "Use long listing format."),
|
||||
cmds.BoolOption(dontSortOptionName, "Do not sort; list entries in directory order."),
|
||||
},
|
||||
Run: func(req *cmds.Request, res cmds.ResponseEmitter, env cmds.Environment) error {
|
||||
|
Reference in New Issue
Block a user