We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a58edbd + bddbc40 commit 36955a4Copy full SHA for 36955a4
contrib/completion/labgrid-client.bash
@@ -382,9 +382,6 @@ _labgrid_client_dfu()
382
--wait)
383
return
384
;;
385
- download|detach|list)
386
- _filedir
387
- ;;
388
-n|--name)
389
_labgrid_complete match-names "$cur"
390
@@ -398,10 +395,14 @@ _labgrid_client_dfu()
398
395
*)
399
396
local args
400
397
_labgrid_count_args "@(--wait|-n|--name)" || return
401
- # only complete second argument
402
- [ "$args" -ne 2 ] && return
403
404
- COMPREPLY=( $(compgen -W "download detach list" -- "$cur") )
+ # complete second argument
+ if [ "$args" -eq 2 ]; then
+ COMPREPLY=( $(compgen -W "download detach list" -- "$cur") )
+ return
+ fi
+
405
+ _filedir
406
407
esac
408
}
0 commit comments