[client,various] print client specific only on help
do not print if version or other command was run
This commit is contained in:
parent
e48fb1eabd
commit
98f4a2b022
@ -1663,9 +1663,22 @@ int main(int argc, char* argv[])
|
||||
if (status)
|
||||
{
|
||||
rc = freerdp_client_settings_command_line_status_print(settings, status, argc, argv);
|
||||
SdlPref::print_config_file_help(2);
|
||||
if (freerdp_settings_get_bool(settings, FreeRDP_ListMonitors))
|
||||
sdl_list_monitors(sdl);
|
||||
else
|
||||
{
|
||||
switch (status)
|
||||
{
|
||||
case COMMAND_LINE_STATUS_PRINT:
|
||||
case COMMAND_LINE_STATUS_PRINT_VERSION:
|
||||
case COMMAND_LINE_STATUS_PRINT_BUILDCONFIG:
|
||||
break;
|
||||
case COMMAND_LINE_STATUS_PRINT_HELP:
|
||||
default:
|
||||
SdlPref::print_config_file_help(2);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
@ -1647,9 +1647,22 @@ int main(int argc, char* argv[])
|
||||
if (status)
|
||||
{
|
||||
rc = freerdp_client_settings_command_line_status_print(settings, status, argc, argv);
|
||||
SdlPref::print_config_file_help(3);
|
||||
if (freerdp_settings_get_bool(settings, FreeRDP_ListMonitors))
|
||||
sdl_list_monitors(sdl);
|
||||
else
|
||||
{
|
||||
switch (status)
|
||||
{
|
||||
case COMMAND_LINE_STATUS_PRINT:
|
||||
case COMMAND_LINE_STATUS_PRINT_VERSION:
|
||||
case COMMAND_LINE_STATUS_PRINT_BUILDCONFIG:
|
||||
break;
|
||||
case COMMAND_LINE_STATUS_PRINT_HELP:
|
||||
default:
|
||||
SdlPref::print_config_file_help(3);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
@ -80,11 +80,22 @@ int main(int argc, char* argv[])
|
||||
{
|
||||
rc = freerdp_client_settings_command_line_status_print(settings, status, argc, argv);
|
||||
|
||||
xfreerdp_print_help();
|
||||
|
||||
if (freerdp_settings_get_bool(settings, FreeRDP_ListMonitors))
|
||||
xf_list_monitors(xfc);
|
||||
|
||||
else
|
||||
{
|
||||
switch (status)
|
||||
{
|
||||
case COMMAND_LINE_STATUS_PRINT:
|
||||
case COMMAND_LINE_STATUS_PRINT_VERSION:
|
||||
case COMMAND_LINE_STATUS_PRINT_BUILDCONFIG:
|
||||
break;
|
||||
case COMMAND_LINE_STATUS_PRINT_HELP:
|
||||
default:
|
||||
xfreerdp_print_help();
|
||||
break;
|
||||
}
|
||||
}
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user