mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 12:22:17 +00:00
Do not hardcode binary name for output, use argv[0].
Patch from Craig Rodrigues. [SVN r29445]
This commit is contained in:
@@ -214,6 +214,7 @@ int main( int argc, char **argv, char **arg_environ )
|
||||
int status;
|
||||
int arg_c = argc;
|
||||
char ** arg_v = argv;
|
||||
const char *progname = argv[0];
|
||||
|
||||
# ifdef OS_MAC
|
||||
InitGraf(&qd.thePort);
|
||||
@@ -240,7 +241,7 @@ int main( int argc, char **argv, char **arg_environ )
|
||||
|
||||
if( getoptions( argc, argv, "-:d:j:f:gs:t:ano:qv", optv ) < 0 )
|
||||
{
|
||||
printf( "\nusage: jam [ options ] targets...\n\n" );
|
||||
printf( "\nusage: %s [ options ] targets...\n\n", progname );
|
||||
|
||||
printf( "-a Build all targets, even if they are current.\n" );
|
||||
printf( "-dx Set the debug level to x (0-9).\n" );
|
||||
|
||||
Reference in New Issue
Block a user