mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 03:24:30 +00:00
fix: include RPC devices in --list-devices (#2182)
This commit is contained in:
1 parent
2e2ba3faec
commit
b15c8aac39
7 files changed
+50
-20
No files matched your search
@@ -301,6 +301,10 @@ void parse_args(int argc, const char** argv, SDCliParams& cli_params, SDContextP
|
||||
log_level = cli_params.log_level;
|
||||
log_color = cli_params.color;
|
||||
|
||||
if (ctx_params.list_devices) {
|
||||
exit(ctx_params.print_devices() ? 0 : 1);
|
||||
}
|
||||
|
||||
bool valid = cli_params.resolve_and_validate();
|
||||
if (valid && cli_params.mode != METADATA) {
|
||||
valid = ctx_params.resolve_and_validate(cli_params.mode) &&
|
||||
|
||||
Reference in new issue
Block a user