Changeset 37d4c91 in mainline for uspace/app/fontviewer/fontviewer.c


Ignore:
Timestamp:
2020-07-17T18:56:37Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3541cb9, 7a873f0
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.