Changeset a19d7fc4 in mainline for uspace/app/hrctl/hrctl.c


Ignore:
Timestamp:
2024-09-06T14:56:46Z (11 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
4a2a6b8b
Parents:
09398589
git-author:
Miroslav Cimerman <mc@…> (2024-09-06 14:54:21)
git-committer:
Miroslav Cimerman <mc@…> (2024-09-06 14:56:46)
Message:

hr: add option (-T, —stop) for removing an active array

File:
1 edited

Legend:

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

    r09398589 ra19d7fc4  
    8686        { "create-file", required_argument, 0, 'C' },
    8787        { "assemble-file", required_argument, 0, 'A' },
     88        { "stop", required_argument, 0, 'T' },
    8889        { 0, 0, 0, 0 }
    8990};
     
    231232
    232233        while (c != -1) {
    233                 c = getopt_long(argc, argv, "hsC:c:A:a:l:015Ln:",
     234                c = getopt_long(argc, argv, "hsC:c:A:a:l:015Ln:T:",
    234235                    long_options, NULL);
    235236                switch (c) {
     
    275276                        assemble = true;
    276277                        break;
     278                case 'T':
     279                        rc = hr_stop(optarg);
     280                        free(cfg);
     281                        if (rc != EOK)
     282                                return 1;
     283                        return 0;
    277284                case 'l':
    278285                        if (cfg->level != hr_l_empty)
Note: See TracChangeset for help on using the changeset viewer.