@ -29,13 +29,10 @@ in the source distribution for its full text.
//#link m
//#link m
ATTR_NORETURN
static void printVersionFlag ( void ) {
static void printVersionFlag ( void ) {
fputs ( " htop " VERSION " \n " , stdout ) ;
fputs ( " htop " VERSION " \n " , stdout ) ;
exit ( 0 ) ;
}
}
ATTR_NORETURN
static void printHelpFlag ( void ) {
static void printHelpFlag ( void ) {
fputs ( " htop " VERSION " \n "
fputs ( " htop " VERSION " \n "
" Released under the GNU GPL. \n \n "
" Released under the GNU GPL. \n \n "
@ -54,7 +51,6 @@ static void printHelpFlag(void) {
" Press F1 inside htop for online help. \n "
" Press F1 inside htop for online help. \n "
" See 'man htop' for more information. \n " ,
" See 'man htop' for more information. \n " ,
stdout ) ;
stdout ) ;
exit ( 0 ) ;
}
}
// ----------------------------------------
// ----------------------------------------
@ -106,10 +102,10 @@ static CommandLineSettings parseArguments(int argc, char** argv) {
switch ( opt ) {
switch ( opt ) {
case ' h ' :
case ' h ' :
printHelpFlag ( ) ;
printHelpFlag ( ) ;
break ;
exit ( 0 ) ;
case ' V ' :
case ' V ' :
printVersionFlag ( ) ;
printVersionFlag ( ) ;
break ;
exit ( 0 ) ;
case ' s ' :
case ' s ' :
if ( strcmp ( optarg , " help " ) = = 0 ) {
if ( strcmp ( optarg , " help " ) = = 0 ) {
for ( int j = 1 ; j < Platform_numberOfFields ; j + + ) {
for ( int j = 1 ; j < Platform_numberOfFields ; j + + ) {