Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 37d4c91 in mainline


Ignore:
Timestamp:
2020-07-17T18:56:37Z (3 weeks ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
26f90d14, ce75d85
Parents:
583c2a3
Message:

Fix fontviewer not accepting font argument

File:
1 edited

Legend:

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

    r583c2a3 r37d4c91  
    248248static void print_syntax(void)
    249249{
    250         printf("Syntax: %s [-d <display>]\n", NAME);
     250        printf("Syntax: %s [-d <display>] [<font-file>]\n", NAME);
    251251}
    252252
     
    257257
    258258        i = 1;
    259         while (i < argc) {
     259        while (i < argc && argv[i][0] == '-') {
    260260                if (str_cmp(argv[i], "-d") == 0) {
    261261                        ++i;
     
    275275
    276276        if (i < argc) {
     277                font_path = argv[i];
     278        } else {
    277279                font_path = NULL;
    278         } else {
    279                 font_path = argv[i];
    280280        }
    281281
Note: See TracChangeset for help on using the changeset viewer.