From 88e23fe50959ccc3e0321fa5983cb8b40bd804af Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 14 Feb 2019 02:25:10 +0100 Subject: Runtime help --- main.h | 47 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 42 insertions(+), 5 deletions(-) (limited to 'main.h') diff --git a/main.h b/main.h index a11916a..462095d 100644 --- a/main.h +++ b/main.h @@ -48,15 +48,52 @@ void fail_exit(const char *msg); _a > _b ? _a : _b; }) -#define VERSION_MESMS "Alpha" -#define HELP_STRING_MESMS "Utilisation : mesms [OPTION]..." "\n"\ - "Gestionnaire de SMS" "\n"\ +#define VERSION_MESMS "Beta" +#define HELP_STRING_MESMS "Usage : mesms [OPTION]..." "\n"\ + "SMS Manager" "\n"\ "Options :" "\n"\ - "\t\t--help -h Affiche l'aide simple" "\n"\ - "\t\t--version -v Affiche la version" "\n"\ + "\t\t--help -h Show this help mesage\n"\ + "\t\t--version -v Print the version \n"\ + "\t\t[--contact NUMBER_OR_NAME] [-c NUMBER_OR_NAME] Retrive a contact \n"\ "\n" "\n"\ + "Examples :" "\n"\ + " $ mesms -c +5555 will retrive the name of the contact with number +5555 \n"\ + " Alexis " "\n"\ + " $ mesms -c Alexis will do the contrary" "\n"\ + " +5555" "\n"\ + "\n" "\n"\ + " $ mesms will launch the main program" "\n"\ + "\n" "\n"\ + "Note : type 'h' in the main program to get help" "\n"\ "" +#define RUNTIME_HELP_STRING \ + " Will in the main program, you can manage contact, display SMS and send SMS. \n"\ + " Just type the letter associated with the action." "\n"\ + "" "\n"\ + " 'a' to Add a contact, you will be asked for some information" "\n"\ + "" "\n"\ + " 'd' to Delete a contact, you will be asked for confirmation" "\n"\ + "" "\n"\ + " 'q' to exit the program" "\n"\ + "" "\n"\ + " '/' to search for a contact, you will be asked for a name" "\n"\ + "" "\n"\ + " 'n' to toogle display number option" "\n"\ + "" "\n"\ + " 'jk' Vim's equivalent of arrow keys, to select a contact" "\n"\ + " When a conversation is selected, navigate througth the SMS" "\n"\ + "" "\n"\ + " 'e' to Edit a contact" "\n"\ + "" "\n"\ + " '\t' Tab key, toogle selection of a the conversion (SMSs)" "\n"\ + " with the highlighted contact" "\n"\ + "" "\n"\ + " 's' to send a SMS to the highlighted contact, you will be asked" "\n"\ + " for confirmation." "\n"\ + "" "\n"\ + " 'i' to send a SMS. Identical to 's' but a Vim shortcut" "\n"\ + "" #endif -- cgit v1.2.3