const verbose = process . argv . find ( ( arg ) => arg === '--verbose' ) ; export function debug ( message ) { if ( ! verbose ) { return ; } console . log ( `JIRA prepare commit msg > DEBUG: ${ message }` ) ; } export function log ( message ) { console . log ( `JIRA prepare commit msg > ${ message }` ) ; } export function error ( err ) { console . error ( `JIRA prepare commit msg > ${ err }` ) ; }