mirror of
https://github.com/EnergyMech/energymech.git
synced 2025-12-17 15:36:50 +00:00
reorder help output alphabetically
This commit is contained in:
parent
be6cc44744
commit
b9cdc649f5
18
src/main.c
Normal file → Executable file
18
src/main.c
Normal file → Executable file
@ -994,17 +994,25 @@ int main(int argc, char **argv, char **envp)
|
|||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
to_file(1,TEXT_USAGE,executable);
|
to_file(1,TEXT_USAGE,executable);
|
||||||
to_file(1,TEXT_FSWITCH
|
to_file(1,
|
||||||
TEXT_CSWITCH
|
TEXT_CSWITCH
|
||||||
TEXT_PSWITCH1
|
|
||||||
TEXT_PSWITCH2
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
TEXT_DSWITCH
|
TEXT_DSWITCH
|
||||||
|
#endif /* DEBUG */
|
||||||
|
TEXT_ESWITCH
|
||||||
|
TEXT_FSWITCH
|
||||||
|
TEXT_HSWITCH
|
||||||
|
#ifdef DEBUG
|
||||||
TEXT_OSWITCH
|
TEXT_OSWITCH
|
||||||
|
TEXT_PSWITCH1
|
||||||
|
TEXT_PSWITCH2
|
||||||
|
#endif /* DEBUG */
|
||||||
|
TEXT_TSWITCH
|
||||||
|
TEXT_VSWITCH
|
||||||
|
#ifdef DEBUG
|
||||||
TEXT_XSWITCH
|
TEXT_XSWITCH
|
||||||
#endif /* DEBUG */
|
#endif /* DEBUG */
|
||||||
TEXT_HSWITCH
|
);
|
||||||
TEXT_VSWITCH);
|
|
||||||
_exit(0);
|
_exit(0);
|
||||||
case 'c':
|
case 'c':
|
||||||
makecore = TRUE;
|
makecore = TRUE;
|
||||||
|
|||||||
11
src/text.h
Normal file → Executable file
11
src/text.h
Normal file → Executable file
@ -140,7 +140,16 @@
|
|||||||
#define TEXT_CSWITCH " -c make core file instead of coredebug/reset\n"
|
#define TEXT_CSWITCH " -c make core file instead of coredebug/reset\n"
|
||||||
#define TEXT_HSWITCH " -h show this help\n"
|
#define TEXT_HSWITCH " -h show this help\n"
|
||||||
#define TEXT_VSWITCH " -v show EnergyMech version\n"
|
#define TEXT_VSWITCH " -v show EnergyMech version\n"
|
||||||
#define TEXT_PSWITCH1 " -p <string> encrypt <string> using the password hashing algorithm,\n"
|
#define TEXT_ESWITCH " -e <command> run a single command, then exit\n"
|
||||||
|
#define TEXT_TSWITCH " -t run normal startup, but exit right before going into main loop\n"
|
||||||
|
|
||||||
|
#ifdef SHACRYPT
|
||||||
|
#define TEXT_PSWITCH1 " -p <string> encrypt <string> using the password hashing algorithm (SHA-512),\n"
|
||||||
|
#elif MD5CRYPT
|
||||||
|
#define TEXT_PSWITCH1 " -p <string> encrypt <string> using the password hashing algorithm (MD5),\n"
|
||||||
|
#else
|
||||||
|
#define TEXT_PSWITCH1 " -p <string> encrypt <string> using the password hashing algorithm (EnergyMech internal),\n"
|
||||||
|
#endif
|
||||||
#define TEXT_PSWITCH2 " output the result and then quit.\n"
|
#define TEXT_PSWITCH2 " output the result and then quit.\n"
|
||||||
|
|
||||||
#define TEXT_DSWITCH " -d start mech in debug mode\n"
|
#define TEXT_DSWITCH " -d start mech in debug mode\n"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user