Implemented automatic version detection
Ported naval example from docopt and expanded it