mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-25 09:07:28 -04:00
mmsg: fix -o flag causing subsequent flags to be ignored when used with -g
This commit is contained in:
parent
225fbda574
commit
0232dcda82
1 changed files with 3 additions and 3 deletions
|
|
@ -569,12 +569,12 @@ int32_t main(int32_t argc, char *argv[]) {
|
||||||
mode = WATCH;
|
mode = WATCH;
|
||||||
break;
|
break;
|
||||||
case 'o':
|
case 'o':
|
||||||
if (mode == SET)
|
if (mode == GET || mode == WATCH)
|
||||||
|
oflag = 1;
|
||||||
|
else if (mode == SET)
|
||||||
output_name = EARGF(usage());
|
output_name = EARGF(usage());
|
||||||
else
|
else
|
||||||
output_name = ARGF();
|
output_name = ARGF();
|
||||||
if (!output_name)
|
|
||||||
oflag = 1;
|
|
||||||
break;
|
break;
|
||||||
case 't':
|
case 't':
|
||||||
tflag = 1;
|
tflag = 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue