call the method parser.add_argument with 3 arguments: string 'addrport', nargs='?' and help as a string 'Optional port number, or ipaddr:port'.
parser . add_argument ( 'addrport' , nargs = '?' , help = 'Optional port number, or ipaddr:port' )