2022-01-13 20:12:32 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"flag"
|
|
|
|
"fmt"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
file_output string
|
|
|
|
file_input []string
|
|
|
|
)
|
|
|
|
|
|
|
|
func dna_flag() {
|
2022-01-15 19:10:12 +08:00
|
|
|
flag.StringVar(&file_output, "o", "a.nex", "output file")
|
2022-01-13 20:12:32 +08:00
|
|
|
flag.Parse()
|
|
|
|
file_input = flag.Args() // []string{"foo", "bar"}
|
|
|
|
fmt.Println("==============")
|
|
|
|
fmt.Println("[input file:]", file_input)
|
|
|
|
fmt.Println("[output file:]", file_output)
|
|
|
|
}
|