aboutsummaryrefslogtreecommitdiffhomepage
path: root/set_color.c
diff options
context:
space:
mode:
Diffstat (limited to 'set_color.c')
-rw-r--r--set_color.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/set_color.c b/set_color.c
index 54ca87ec..edaa0fdb 100644
--- a/set_color.c
+++ b/set_color.c
@@ -37,6 +37,7 @@
#endif
#include "fallback.h"
+#include "print_help.h"
/*
Small utility for setting the color.
@@ -90,8 +91,6 @@ int col_idx[]=
}
;
-void print_help();
-
int translate_color( char *str )
{
char *endptr;
@@ -206,7 +205,7 @@ int main( int argc, char **argv )
bgcolor = optarg;
break;
case 'h':
- print_help();
+ print_help( argv[0], 1 );
exit(0);
case 'o':
@@ -254,7 +253,7 @@ int main( int argc, char **argv )
{
check_locale_init();
fprintf( stderr, _("%s: Expected an argument\n"), SET_COLOR );
- print_help();
+ print_help( argv[0], 2 );
return 1;
}