2
0

Improve output alignment.

This commit is contained in:
Maarten Billemont 2018-04-03 08:49:34 -04:00
parent 44b2955652
commit c7373fee28

View File

@ -695,7 +695,9 @@ void cli_mpw(Arguments *args, Operation *operation) {
if (!operation->site) if (!operation->site)
abort(); abort();
inf( "%s's %s for %s:\n[ %s ]: ", operation->user->fullName, operation->purposeResult, operation->site->name, operation->identicon ); if (mpw_verbosity >= inf_level)
fprintf( stderr, "%s's %s for %s:\n[ %s ]: ",
operation->user->fullName, operation->purposeResult, operation->site->name, operation->identicon );
// Determine master key. // Determine master key.
MPMasterKey masterKey = mpw_masterKey( MPMasterKey masterKey = mpw_masterKey(
@ -755,6 +757,7 @@ void cli_mpw(Arguments *args, Operation *operation) {
cli_free( args, operation ); cli_free( args, operation );
exit( EX_SOFTWARE ); exit( EX_SOFTWARE );
} }
fflush( NULL );
fprintf( stdout, "%s\n", result ); fprintf( stdout, "%s\n", result );
if (operation->site->url) if (operation->site->url)
inf( "See: %s", operation->site->url ); inf( "See: %s", operation->site->url );