Standard cmd module provide nice tools to build a CLI with auto completion by default if readline support is available.
However I wonder how can I know from inside the program whether this support is effectively available or not and though whether the completion is enabled or not.