mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
pw-cli: continue after parsed options
This commit is contained in:
parent
c292a6d54e
commit
413bda908a
1 changed files with 2 additions and 2 deletions
|
|
@ -2815,7 +2815,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
do_connect(&data, "connect", opt_remote, &error);
|
||||
|
||||
if (argc == 1) {
|
||||
if (optind == argc) {
|
||||
data.interactive = true;
|
||||
|
||||
pw_loop_add_io(l, STDIN_FILENO, SPA_IO_IN|SPA_IO_HUP, false, do_input, &data);
|
||||
|
|
@ -2828,7 +2828,7 @@ int main(int argc, char *argv[])
|
|||
char buf[4096], *p, *error;
|
||||
|
||||
p = buf;
|
||||
for (i = 1; i < argc; i++) {
|
||||
for (i = optind; i < argc; i++) {
|
||||
p = stpcpy(p, argv[i]);
|
||||
p = stpcpy(p, " ");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue