Fix option parsing
This commit is contained in:
parent
12c057e651
commit
044989b8d5
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ int main(int argc, char** argv) {
|
|||
struct donar_params dp;
|
||||
donar_init_params (&dp);
|
||||
|
||||
while ((dp.opt = getopt(argc, argv, "csh:e:r:o:a:b:h:")) != -1) {
|
||||
while ((dp.opt = getopt(argc, argv, "cse:r:o:a:bh")) != -1) {
|
||||
switch(dp.opt) {
|
||||
case 's':
|
||||
dp.is_server = 1;
|
||||
|
|
Loading…
Reference in a new issue