Press TAB for autocompletion or available options autocompletion nested>("kill", "select") # 'TAB' on empty input shows available commands autocompletion nested>select c("camel", "cat", "cow") # 'cTAB' shows animals but not 'dog' autocompletion nested>select ca("camel", "cat") # 'caTAB' shows two animals starting with 'ca' autocompletion nested>select camel ("give", "take_to") # I press 'mTAB' thae autocomplete in 'camel' # 'TAB' again for next level commands: give and take_to autocompletion nested>select camel take_to ("desert", "sea", "wood") # 'tTAB' and 'TAB' again autocompletion nested>select camel take_to desert # 'desTAB' leads to 'desert' # ENTER 1 autocompletion nested> # ENTER 2 exits the user input cycle CHOOSEN: select camel take_to desert # finally we print the resulting path