get rotation using getopt