Use command-line arguments for length