export function getCommandLineArguments ( argv ) { const args = argv . splice ( 4 ) ; const result = { } ; args . forEach ( keyAndValue => { const [ key , value ] = keyAndValue . split ( '=' ) ; if ( typeof value === 'undefined' ) { result [ key ] = true ; return ; } try { result [ key ] = JSON . parse ( value ) ; } catch ( error ) { result [ key ] = value ; } } ) ; return result ; }