private static void assignRuntimeArgs(String[] a) {

		// error checks number of commands
		if (a.length != 5) {
			System.out
					.println("ERROR:\tMissing runtime commands.  "
							+ "You must enter a search term, min duration, max duration, quantity to download, and file type (eg: \"wav\", \"mp3\", \"ogg\").");
			flagRuntimeCommands = true;
			return;
		}

		// Search term
		keyword = null;
		try {
			keyword = URLEncoder.encode(a[0], "UTF-8");
		} catch (UnsupportedEncodingException e1) {
			e1.printStackTrace();
			return;
		}
		System.out.println("\nSEARCH TERM:\t\t" + a[0]);

		try {

			// FILTER - Duration
			minDuration = Integer.parseInt(a[1]);
			maxDuration = Integer.parseInt(a[2]);
			System.out.println("DURATION:\t\t" + minDuration + " to "
					+ maxDuration + " seconds");

			// Quantity to download
			quantity = Integer.parseInt(a[3]);
			System.out.println("QUANTITY TO DOWNLOAD:\t" + quantity);

			// sound file type
			filetype = a[4];
			System.out.println("FILE TYPE:\t\t" + filetype);

		} catch (NumberFormatException e2) {
			e2.printStackTrace();
			flagRuntimeCommands = true;
			return;
		}

	}