Here's a library that works for both: arguino and maple.
It's a half duplex rs485/serial multi-drop protocol library for sending messages/commands + arguments and supports receipt system.
Has support for checksuming commands/messages.
Free to use. Poorly documented, but examples help getting somewhere. Also master/server version for pc/mac/raspberry/etc is provided.. (in examples/*/master )
Just don't connect anything RTS pin if you don't want to use rs485 or similar.. Ofcourse if you decide to use this, don't use rts pin stuff at all if only using serial..
Tested and designed for Arduino Due. See no reason why it wouldn't work on others too. And if it doesn't, it should be minimal effort to get it working on other setups.
Get it from here: https://github.com/oskarirauta/commandInterpreter