fix -n flag
This commit is contained in:
parent
b665262e33
commit
0fb2e7acb3
|
@ -173,6 +173,8 @@ Done:
|
||||||
|
|
||||||
To (possibly) do:
|
To (possibly) do:
|
||||||
|
|
||||||
|
- [ ] Add flag to repeat input lines (useful when reading from files)
|
||||||
|
- [ ] Make -n flag work
|
||||||
- [ ] Add functions. Now easier to do with an explicit representation of the stakc
|
- [ ] Add functions. Now easier to do with an explicit representation of the stakc
|
||||||
- [ ] Think about how to draw a histogram from samples
|
- [ ] Think about how to draw a histogram from samples
|
||||||
- [ ] Dump samples to file
|
- [ ] Dump samples to file
|
||||||
|
|
2
fermi.go
2
fermi.go
|
@ -411,9 +411,9 @@ replForLoop:
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
num_samples_flag := flag.Int("n", N_SAMPLES, "Specifies the number of samples to draw when using samples")
|
num_samples_flag := flag.Int("n", N_SAMPLES, "Specifies the number of samples to draw when using samples")
|
||||||
N_SAMPLES = *num_samples_flag
|
|
||||||
filename := flag.String("f", "", "Specifies a file with a model to run")
|
filename := flag.String("f", "", "Specifies a file with a model to run")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
N_SAMPLES = *num_samples_flag
|
||||||
|
|
||||||
var reader *bufio.Reader = nil
|
var reader *bufio.Reader = nil
|
||||||
if *filename != "" {
|
if *filename != "" {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user