export const hasFlags = ( flags ) => { return Object . keys ( flags ) . length ; } ; export const hasArgs = ( args ) => { return Object . values ( args ) . filter ( v => v !== null ) . length ; } ; export const isEmptyCommand = ( flags , args ) => { if ( ! hasFlags ( flags ) && ! hasArgs ( args ) ) { return true ; } return false ; } ;