This commit is contained in:
iceman1001
2021-04-10 12:28:39 +02:00
parent f8771f2ebb
commit 49b830266c
4 changed files with 60 additions and 75 deletions

View File

@@ -296,7 +296,7 @@ static int CmdClear(const char *Cmd) {
static command_t CommandTable[] = {
{"help", CmdHelp, AlwaysAvailable, "Use `" _YELLOW_("<command> help") "` for details of a command"},
{"preferences", CmdPref, AlwaysAvailable, "{ Edit client/device preferences... }"},
{"prefs", CmdPref, AlwaysAvailable, "{ Edit client/device preferences... }"},
{"--------", CmdHelp, AlwaysAvailable, "----------------------- " _CYAN_("Technology") " -----------------------"},
{"analyse", CmdAnalyse, AlwaysAvailable, "{ Analyse utils... }"},
{"data", CmdData, AlwaysAvailable, "{ Plot window / data buffer manipulation... }"},

View File

@@ -504,9 +504,9 @@ static void showBarModeState(prefShowOpt_t opt) {
static int setCmdEmoji(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "pref set emoji ",
CLIParserInit(&ctx, "prefs set emoji ",
"Set presistent preference of using emojis in the client",
"pref set emoji --alias"
"prefs set emoji --alias"
);
void *argtable[] = {
@@ -558,9 +558,9 @@ static int setCmdEmoji(const char *Cmd) {
static int setCmdColor(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "pref set color ",
CLIParserInit(&ctx, "prefs set color ",
"Set presistent preference of using colors in the client",
"pref set color --ansi"
"prefs set color --ansi"
);
void *argtable[] = {
@@ -602,9 +602,9 @@ static int setCmdColor(const char *Cmd) {
static int setCmdDebug(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "pref set clientdebug ",
CLIParserInit(&ctx, "prefs set clientdebug ",
"Set presistent preference of using clientside debug level",
"pref set clientdebug --simple"
"prefs set clientdebug --simple"
);
void *argtable[] = {
@@ -653,9 +653,9 @@ static int setCmdDebug(const char *Cmd) {
static int setCmdDeviceDebug (const char *Cmd)
{
CLIParserContext *ctx;
CLIParserInit(&ctx, "pref set devicedebug ",
CLIParserInit(&ctx, "prefs set devicedebug ",
"Set presistent preference of device side debug level",
"pref set devicedebug --on"
"prefs set devicedebug --on"
);
void *argtable[] = {
@@ -720,9 +720,9 @@ static int setCmdDeviceDebug (const char *Cmd)
static int setCmdHint(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "pref set hints ",
CLIParserInit(&ctx, "prefs set hints ",
"Set presistent preference of showing hint messages in the client",
"pref set hints --on"
"prefs set hints --on"
);
void *argtable[] = {
@@ -763,9 +763,9 @@ static int setCmdHint(const char *Cmd) {
static int setCmdPlotSliders(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "pref set plotsliders",
CLIParserInit(&ctx, "prefs set plotsliders",
"Set presistent preference of showing the plotslider control in the client",
"pref set plotsliders --on"
"prefs set plotsliders --on"
);
void *argtable[] = {
@@ -805,10 +805,10 @@ static int setCmdPlotSliders(const char *Cmd) {
static int setCmdSavePaths(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "pref set savepaths",
CLIParserInit(&ctx, "prefs set savepaths",
"Set presistent preference of file paths in the client",
"pref set savepaths --dump /home/mydumpfolder -> all dump files will be saved into this folder\n"
"pref set savepaths --def /home/myfolder -c -> create if needed, all files will be saved into this folder"
"prefs set savepaths --dump /home/mydumpfolder -> all dump files will be saved into this folder\n"
"prefs set savepaths --def /home/myfolder -c -> create if needed, all files will be saved into this folder"
);
void *argtable[] = {
@@ -886,9 +886,9 @@ static int setCmdSavePaths(const char *Cmd) {
static int setCmdBarMode(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "pref set barmode",
CLIParserInit(&ctx, "prefs set barmode",
"Set presistent preference of HF/LF tune command styled output in the client",
"pref set barmode --mix"
"prefs set barmode --mix"
);
void *argtable[] = {
@@ -933,9 +933,9 @@ static int setCmdBarMode(const char *Cmd) {
static int getCmdEmoji(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "pref get emoji",
CLIParserInit(&ctx, "prefs get emoji",
"Get preference of using emojis in the client",
"pref get emoji"
"prefs get emoji"
);
void *argtable[] = {
arg_param_begin,
@@ -949,9 +949,9 @@ static int getCmdEmoji(const char *Cmd) {
static int getCmdHint(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "pref get hints",
CLIParserInit(&ctx, "prefs get hints",
"Get preference of showing hint messages in the client",
"pref get hints"
"prefs get hints"
);
void *argtable[] = {
arg_param_begin,
@@ -965,9 +965,9 @@ static int getCmdHint(const char *Cmd) {
static int getCmdColor(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "pref get color",
CLIParserInit(&ctx, "prefs get color",
"Get preference of using colors in the client",
"pref get color"
"prefs get color"
);
void *argtable[] = {
arg_param_begin,
@@ -981,9 +981,9 @@ static int getCmdColor(const char *Cmd) {
static int getCmdDebug(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "pref get clientdebug",
CLIParserInit(&ctx, "prefs get clientdebug",
"Get preference of using clientside debug level",
"pref get clientdebug"
"prefs get clientdebug"
);
void *argtable[] = {
arg_param_begin,
@@ -997,9 +997,9 @@ static int getCmdDebug(const char *Cmd) {
static int getCmdPlotSlider(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "pref get plotsliders",
CLIParserInit(&ctx, "prefs get plotsliders",
"Get preference of showing the plotslider control in the client",
"pref get plotsliders"
"prefs get plotsliders"
);
void *argtable[] = {
arg_param_begin,
@@ -1013,9 +1013,9 @@ static int getCmdPlotSlider(const char *Cmd) {
static int getCmdBarMode(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "pref get barmode",
CLIParserInit(&ctx, "prefs get barmode",
"Get preference of HF/LF tune command styled output in the client",
"pref get barmode"
"prefs get barmode"
);
void *argtable[] = {
arg_param_begin,
@@ -1029,9 +1029,9 @@ static int getCmdBarMode(const char *Cmd) {
static int getCmdSavePaths(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "pref get savepaths",
CLIParserInit(&ctx, "prefs get savepaths",
"Get preference of file paths in the client",
"pref get savepaths"
"prefs get savepaths"
);
void *argtable[] = {
arg_param_begin,
@@ -1088,9 +1088,9 @@ static int CmdPrefSet(const char *Cmd) {
static int CmdPrefShow(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "pref show",
CLIParserInit(&ctx, "prefs show",
"Show all persistent preferences",
"pref show"
"prefs show"
);
void *argtable[] = {
arg_param_begin,