don't complain about missing "--slot" parameter, when you don't
need it (if you only "--list-slots"). git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4122 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
5972022ffc
commit
84934adab9
|
@ -543,7 +543,7 @@ int main(int argc, char * argv[])
|
|||
opt_slot = slot;
|
||||
}
|
||||
|
||||
if (opt_slot == NO_SLOT) {
|
||||
if ((opt_slot == NO_SLOT) && (action_count > do_list_slots)) {
|
||||
fprintf(stderr, "You must specify a slot ID\n");
|
||||
err = 1;
|
||||
goto end;
|
||||
|
|
Loading…
Reference in New Issue