options

package
v0.0.14-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	PartSize    int64 `short:"p" long:"part-size" description:"Part size in bytes of parts to be downloaded"`
	Concurrency int   `short:"c" long:"concurrency" description:"Download concurrency"`
	BufferSize  int   `short:"b" long:"buffer-size" description:"Size of download buffer in bytes"`
	Checksum    bool  `long:"checksum" description:"Compare checksum if downloading or place checksum in metadata if uploading"`
	Duration    bool  `short:"d" long:"duration" description:"Prints the duration of the download"`
	MMap        bool  `short:"m" long:"mmap" description:"Use mmap for downloads"`
	Positional  struct {
		Source      string `description:"Source to copy from" required:"yes"`
		Destination string `description:"Destination to copy to (Optional, defaults to source's base name)"`
	} `positional-args:"yes"`
}

Options - the options passed to the executable

func ParseArgs

func ParseArgs() Options

ParseArgs wraps flags.ParseArgs and adds system-dependent defaults

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL