summaryrefslogtreecommitdiff
path: root/util_liveinfo/src/liveinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'util_liveinfo/src/liveinfo.c')
-rw-r--r--util_liveinfo/src/liveinfo.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/util_liveinfo/src/liveinfo.c b/util_liveinfo/src/liveinfo.c
index a44a9f7..705b100 100644
--- a/util_liveinfo/src/liveinfo.c
+++ b/util_liveinfo/src/liveinfo.c
@@ -475,6 +475,7 @@ static inline void help(void)
printf("liveinfo - Livebox utility\n");
printf("------------------------------ [Option] ------------------------------\n");
printf("-b Batch mode\n");
+ printf("-x execute command\n");
printf("------------------------------ [Command list] ------------------------------\n");
printf("cd [PATH] - Change directory\n");
printf("ls [ | PATH] - List up content as a file\n");
@@ -486,6 +487,7 @@ static inline void help(void)
printf("x resize Pix w h - Resize the window\n");
printf("x map Pix - Show the window\n");
printf("x unmap Pix - Hide the window\n");
+ printf("x capture Pix outfile - Capture pixmap and save it to outfile\n");
printf("sh [command] Execute shell command, [command] should be abspath\n");
printf("exit - \n");
printf("quit - \n");
@@ -1675,6 +1677,7 @@ int main(int argc, char *argv[])
{ "batchmode", required_argument, 0, 'b' },
{ "help", no_argument, 0, 'h' },
{ "verbose", required_argument, 0, 'v' },
+ { "execute", required_argument, 0, 'x' },
{ 0, 0, 0, 0 }
};
int option_index;
@@ -1713,6 +1716,13 @@ int main(int argc, char *argv[])
s_info.verbose = !strcmp(optarg, "true");
break;
+ case 'x':
+ if (!optarg || !*optarg) {
+ printf("Invalid argument\n");
+ help();
+ return -EINVAL;
+ }
+ break;
default:
break;
}