Forces user to specify freq.

master
James Peroulas 2015-01-02 22:29:48 -08:00
rodzic 3c6d629d1c
commit e3076dfbdd
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -316,6 +316,10 @@ void parse_commandline(
cerr << "Error: cannot specify both --freq and --divisor" << endl;
ABORT(-1);
}
if ((!freq_specified)&&(!div_specified)) {
cerr << "Error: must specify either --freq or --divisor" << endl;
ABORT(-1);
}
if (freq_specified&&(freq<=0)) {
cerr << "Error: frequency must be positive" << endl;
ABORT(-1);