2019-12-06 14:23:01 +00:00
|
|
|
package output
|
|
|
|
|
|
|
|
import "flag"
|
|
|
|
|
|
|
|
var (
|
2023-09-02 21:49:02 +00:00
|
|
|
fullOutput bool
|
|
|
|
printEmptyBlocks bool
|
|
|
|
targetFiles string
|
|
|
|
targetAllFiles bool
|
|
|
|
targetOutput string
|
|
|
|
graphOutput string
|
2019-12-06 14:23:01 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func RegisterFlags() {
|
2023-09-02 21:49:02 +00:00
|
|
|
flag.BoolVar(&fullOutput, "full-output", false, "Show full output instead of limiting submodule output")
|
|
|
|
flag.BoolVar(&printEmptyBlocks, "print-empty-blocks", false, "Prints blocks (submodule output) even if the submodule doesn't have any content to print.")
|
|
|
|
flag.StringVar(&targetFiles, "extract-these", "", "Comma-separated list of files to extract.")
|
|
|
|
flag.BoolVar(&targetAllFiles, "extract-all", false, "Extract all files found.")
|
|
|
|
flag.StringVar(&targetOutput, "extract-to", "./extracted", "Directory to store extracted files in.")
|
|
|
|
flag.StringVar(&graphOutput, "create-graph", "", "Create a Graphviz graph out of collected communication")
|
2019-12-06 14:23:01 +00:00
|
|
|
}
|