Gets user input of a distance value from the command's input.
Returns the entered double value for a distance.