The default file name is the hex representation of the swarm hash passed as argument, and the default mime-type is application/octet-stream. Both can be explicitly set with --filename and --mime-type respectively. If --output-dir is given, the metadata and entry chunks are written to the specified directory.
Resolving a file entry:
If --output-dir is set, the retrieved file will be written to the speficied directory. Otherwise it will be written to the current directory. Use -f to force overwriting an existing file.`,
RunE:Entry,
SilenceUsage:true,
}
c.Flags().StringVar(&filename,"filename","","filename to use in entry")
c.Flags().StringVar(&mimeType,"mime-type","","mime-type to use in collection")