2019-12-06 14:23:01 +00:00
|
|
|
package output
|
|
|
|
|
|
|
|
import "flag"
|
|
|
|
|
|
|
|
var (
|
|
|
|
fullOutput *bool
|
|
|
|
printEmptyBlocks *bool
|
2020-01-08 15:34:31 +00:00
|
|
|
targetFiles *string
|
|
|
|
targetAllFiles *bool
|
|
|
|
targetOutput *string
|
2019-12-06 14:23:01 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func RegisterFlags() {
|
|
|
|
fullOutput = flag.Bool("full-output", false, "Show full output instead of limiting submodule output")
|
|
|
|
printEmptyBlocks = flag.Bool("print-empty-blocks", false, "Prints blocks (submodule output) even if the submodule doesn't have any content to print.")
|
2020-01-08 15:34:31 +00:00
|
|
|
targetFiles = flag.String("extract-these", "", "Comma-separated list of files to extract.")
|
|
|
|
targetAllFiles = flag.Bool("extract-all", false, "Extract all files found.")
|
|
|
|
targetOutput = flag.String("extract-to", "./extracted", "Directory to store extracted files in.")
|
2019-12-06 14:23:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|