URL
https://opencores.org/ocsvn/sqmusic/sqmusic/trunk
[/] [sqmusic/] [trunk/] [cpp/] [args.h] - Diff between revs 18 and 21
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 18 |
Rev 21 |
Line 123... |
Line 123... |
else if( !a.short_name.empty() ) pname=a.short_name;
|
else if( !a.short_name.empty() ) pname=a.short_name;
|
throw_error("Parameter "+pname+" is required.");
|
throw_error("Parameter "+pname+" is required.");
|
}
|
}
|
}
|
}
|
}
|
}
|
|
void check_ilegal_combinations( arg_vector_t& ilegal ) {
|
|
int count=0;
|
|
std::string names;
|
|
for( int k=0; k < ilegal.size(); k++ )
|
|
if( ilegal[k]->is_set() ) { count++; names += " " + ilegal[k]->long_name; }
|
|
if( count>1 ) throw_error( "Parameters" + names + " cannot be used together" );
|
|
}
|
bool help_request() { if( help_arg.is_set() ) show_help(); return help_arg.is_set(); }
|
bool help_request() { if( help_arg.is_set() ) show_help(); return help_arg.is_set(); }
|
std::string brackets( const argument_t& a, std::string s ) {
|
std::string brackets( const argument_t& a, std::string s ) {
|
return a.req ? "<"+s+">" : "["+s+"]";
|
return a.req ? "<"+s+">" : "["+s+"]";
|
}
|
}
|
void show_help() {
|
void show_help() {
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.