Learn getopt_long readline history and so on.