Add flag support to resize command