cmd: fix didn't use default value if option is not set by user
cmd: fix didn't use default value if option is not set by user

chensoft/libsocket,chensoft/libsocket,chensoft/libsocket,chensoft/libsocket