1
0
mirror of https://github.com/moshix/mvs.git synced 2026-01-20 17:38:12 +00:00

fixed some errors in defaults handling

This commit is contained in:
Moshix 2017-05-27 17:16:31 -05:00
parent 59a1595052
commit fab1a996b3
2 changed files with 3 additions and 5 deletions

BIN
blocksize

Binary file not shown.

View File

@ -14,16 +14,14 @@ import (
"fmt"
)
/* global variables section */
func main() {
var lrecl int = 0 // initialize lrecl
var dasd = "" // initialize DASD type
dasdPtr := flag.String("dasd", "3390", "DASD model")
lreclPtr := flag.Int("lrecl", 80, "logical record length")
helpPtr := flag.Bool("help", false, "help flag")
dasdPtr := flag.String("dasd", "", "DASD model") // default to no DASD
lreclPtr := flag.Int("lrecl", 0, "logical record length") //default to zero lrecl
helpPtr := flag.Bool("help", false, "help flag") // default to no help
flag.Parse()
lrecl = *lreclPtr // assign argument to main variable lrecl