import { Arguments } from "yargs" ; import { ICreateDataSetOptions } from "@zowe/zos-files-for-zowe-sdk" ; param { yargs . Arguments } commandArguments return { ICreateDataSetOptions } export function generateZosmfOptions ( commandArguments ) { return JSON . parse ( JSON . stringify ( { alcunit : commandArguments . allocationSpaceUnit , volser : commandArguments . volumeSerial , primary : commandArguments . primarySpace , secondary : commandArguments . secondarySpace , dirblk : commandArguments . directoryBlocks , recfm : commandArguments . recordFormat , blksize : commandArguments . blockSize , lrecl : commandArguments . recordLength , storclass : commandArguments . storageClass , mgntclass : commandArguments . managementClass , dataclass : commandArguments . dataClass , dsntype : commandArguments . dataSetType , showAttributes : commandArguments . showAttributes , size : commandArguments . size , responseTimeout : commandArguments . responseTimeout } ) ) ; }