refactoring CliCommand.size_in_bytes