summaryrefslogtreecommitdiffhomepage
path: root/src/skin
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-07-16 05:41:31 -0400
committermidipix <writeonce@midipix.org>2016-07-21 03:47:29 -0400
commitcc22daecf6700070d7a4955f1a2a0847287b0b8d (patch)
tree7826c6eebad492c12cfd8d060001a50a5f9fc3c4 /src/skin
parent87ae0a448df5467ead98826e683cd693d1d6489c (diff)
downloadptycon-cc22daecf6700070d7a4955f1a2a0847287b0b8d.tar.bz2
ptycon-cc22daecf6700070d7a4955f1a2a0847287b0b8d.tar.xz
driver: added --exec support.
Diffstat (limited to 'src/skin')
-rw-r--r--src/skin/ptyc_skin_default.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/skin/ptyc_skin_default.c b/src/skin/ptyc_skin_default.c
index 1239947..814f6c2 100644
--- a/src/skin/ptyc_skin_default.c
+++ b/src/skin/ptyc_skin_default.c
@@ -8,6 +8,15 @@ const struct argv_option ptyc_default_options[] = {
{"help", 'h',TAG_HELP,ARGV_OPTARG_OPTIONAL,0,"short|long",0,
"show usage information [listing %s options only]"},
+ {"-exec", 0,TAG_EXEC,ARGV_OPTARG_REQUIRED,
+ ARGV_OPTION_HYBRID_ONLY | ARGV_OPTION_HYBRID_SPACE,
+ 0,"<cmd> ... [argv] ...",
+ "execute %s; default is /bin/sh."},
+
+ {"e", 0,TAG_EXEC,ARGV_OPTARG_REQUIRED,
+ ARGV_OPTION_HYBRID_ONLY | ARGV_OPTION_HYBRID_SPACE,
+ 0,0,"synonym for --exec."},
+
{"daemon", 0,TAG_DAEMON,ARGV_OPTARG_OPTIONAL,0,"default|always|never",0,
"create a daemon thread and handle signals sent by the "
"application's own controlling terminal. The default is "