blob: 4e83a0ba5b1ddd7332a7c59bfa664100051fd8fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/env sh
program="$(commander -rc)"
[ "$program" ] || exit 1
option="$("$program" --help |
# Parse options
grep -- "^ *-[-a-zA-Z0-9]* " |
tr -s ' ' |
sort | uniq |
column -l 2 -t |
commander -lxc |
awk '{print $1}')"
[ "$option" ] || exit 1
setsid "$program" "$option"
|