Changeset c2d737d in mainline


Ignore:
Timestamp:
2025-06-22T16:31:42Z (4 weeks ago)
Author:
Miroslav Cimerman <mc@…>
Children:
8b0fbb7
Parents:
263a2389
Message:

hrctl: allow —help even when the server is offline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/hrctl/hrctl.c

    r263a2389 rc2d737d  
    129129        }
    130130
     131        if (argc > 1 &&
     132            ((str_cmp(argv[1], "-h") == 0) ||
     133            str_cmp(argv[1], "--help") == 0)) {
     134                usage();
     135                return EXIT_SUCCESS;
     136        }
     137
    131138        rc = hr_sess_init(&hr);
    132139        if (rc != EOK) {
     
    178185        if (rc != EXIT_SUCCESS)
    179186                printf(NAME ": use --help to see usage\n");
     187
    180188        return rc;
    181189}
Note: See TracChangeset for help on using the changeset viewer.