Skip to content
Snippets Groups Projects
Commit 0158aace authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

be better at help display, typo fix

parent ebacb003
No related branches found
No related tags found
No related merge requests found
......@@ -132,18 +132,7 @@ int ssexec_enable(int argc, char const *const *argv, ssexec_t *info)
log_die(LOG_EXIT_USER, "services selection is not available -- try first to install the corresponding frontend file") ;
for (n = 0 ; n < argc ; n++) {
/**
*
*
* need to check if the service is declared at the same tree
* than asked:
* sA on tA
* ask sA on tB by the -t options
*
* in this case we need to remove sA from the resolve file of the tree tA
*
*
* */
service_enable_disable(&graph, info->base.s, argv[n], 1) ;
if (!sastr_add_string(&sa, argv[n]))
......
......@@ -192,7 +192,7 @@ static void write_user_env_file(char const *src, char const *sv)
r = str_contain(sa.s,"[ENDWARN]") ;
if (r == -1)
log_die(LOG_EXIT_SYS,"invalid upstream configuration file! Do you have modified it? Tries to enable the service again.") ;
log_die(LOG_EXIT_SYS,"invalid upstream configuration file! Do you have modified it? Tries to parse the service again.") ;
write_environ(sv, sa.s + r, src) ;
}
......
......@@ -47,7 +47,7 @@ char const *help_66 =
" env: manage service environment variable\n"
" service: manage/see service information\n"
" tree: manage/see tree information\n"
" init: initiate to scandir all service declared inside tree\n"
" init: initiate to scandir all services marked enabled at tree\n"
" parse: parse the service frontend file\n"
" signal: send signal to service\n"
" scanctl: send signal to scandir\n"
......@@ -237,7 +237,7 @@ char const *help_tree_wrapper =
"options:\n"
" -h: print this help\n"
"\n"
"command:"
"command:\n"
" create: create tree\n"
" admin: manage tree\n"
" remove: remove tree\n"
......@@ -253,7 +253,7 @@ char const *help_tree_wrapper =
"Use '66 tree <command> -h' to see command options\n"
;
char const *usage_tree_create = "66 tree create [ -h ] [ -o depends=,requiredby=,... ] tree" ;
char const *usage_tree_create = "66 tree create [ -h ] [ -o depends=:requiredby=:... ] tree" ;
char const *help_tree_create =
"\ncreate a tree\n"
......@@ -273,7 +273,7 @@ char const *help_tree_create =
" noseed: do not use seed file to build the tree\n"
;
char const *usage_tree_admin = "66 tree admin [ -h ] [ -o depends=,requiredby=,... ] tree" ;
char const *usage_tree_admin = "66 tree admin [ -h ] [ -o depends=:requiredby=:... ] tree" ;
char const *help_tree_admin =
"\nadministrate an existing tree\n"
......
......@@ -39,9 +39,6 @@
static wchar_t const field_suffix[] = L" :" ;
static char fields[INFO_NKEY][INFO_FIELD_MAXLEN] = {{ 0 }} ;
#define USAGE "66-instate [ -h ] [ -v verbosity ] [ -z ] service"
static void info_display_string(char const *field,char const *str)
{
info_display_field_name(field) ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment