Skip to content

Commit

Permalink
add level keyword in list that acts as joblevel alias
Browse files Browse the repository at this point in the history
  • Loading branch information
alaaeddineelamri authored and BareosBot committed Oct 6, 2023
1 parent fb95cf5 commit 3509d4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/dird/ua_select.cc
Expand Up @@ -1965,7 +1965,8 @@ bool GetUserJobLevelSelection(UaContext* ua, int* joblevel)
{
int i;

if ((i = FindArgWithValue(ua, NT_("joblevel"))) >= 0) {
if (((i = FindArgWithValue(ua, NT_("joblevel"))) >= 0)
|| ((i = FindArgWithValue(ua, NT_("level"))) >= 0)) {
if (strlen(ua->argv[i]) == 1 && ua->argv[i][0] >= 'A'
&& ua->argv[i][0] <= 'z') {
*joblevel = ua->argv[i][0];
Expand Down

0 comments on commit 3509d4d

Please sign in to comment.