Changeset 18b6a88 in mainline for uspace/app/bdsh


Ignore:
Timestamp:
2018-04-15T09:35:04Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1f44ca
Parents:
8ebe212
Message:

More ccheck fixes, sometimes with manual intervention.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/mkdir/mkdir.c

    r8ebe212 r18b6a88  
    5151
    5252static struct option const long_options[] = {
    53         {"parents", no_argument, 0, 'p'},
    54         {"verbose", no_argument, 0, 'v'},
    55         {"mode", required_argument, 0, 'm'},
    56         {"help", no_argument, 0, 'h'},
    57         {"version", no_argument, 0, 'V'},
    58         {"follow", no_argument, 0, 'f'},
    59         {0, 0, 0, 0}
     53        { "parents", no_argument, 0, 'p' },
     54        { "verbose", no_argument, 0, 'v' },
     55        { "mode", required_argument, 0, 'm' },
     56        { "help", no_argument, 0, 'h' },
     57        { "version", no_argument, 0, 'V' },
     58        { "follow", no_argument, 0, 'f' },
     59        { 0, 0, 0, 0 }
    6060};
    6161
     
    6868                help_cmd_mkdir(HELP_SHORT);
    6969                printf(
    70                 "Usage:  %s [options] <path>\n"
    71                 "Options:\n"
    72                 "  -h, --help       A short option summary\n"
    73                 "  -V, --version    Print version information and exit\n"
    74                 "  -p, --parents    Create needed parents for <path>\n"
    75                 "  -m, --mode       Set permissions to [mode] (UNUSED)\n"
    76                 "  -v, --verbose    Be extremely noisy about what is happening\n"
    77                 "  -f, --follow     Go to the new directory once created\n"
    78                 "Currently, %s is under development, some options don't work.\n",
    79                 cmdname, cmdname);
     70                    "Usage:  %s [options] <path>\n"
     71                    "Options:\n"
     72                    "  -h, --help       A short option summary\n"
     73                    "  -V, --version    Print version information and exit\n"
     74                    "  -p, --parents    Create needed parents for <path>\n"
     75                    "  -m, --mode       Set permissions to [mode] (UNUSED)\n"
     76                    "  -v, --verbose    Be extremely noisy about what is happening\n"
     77                    "  -f, --follow     Go to the new directory once created\n"
     78                    "Currently, %s is under development, some options don't work.\n",
     79                    cmdname, cmdname);
    8080        }
    8181
     
    202202        if (argc < 1) {
    203203                printf("%s - incorrect number of arguments. Try `%s --help'\n",
    204                         cmdname, cmdname);
     204                    cmdname, cmdname);
    205205                return CMD_FAILURE;
    206206        }
     
    209209                if (verbose)
    210210                        printf("%s: creating %s%s\n",
    211                                 cmdname, argv[i],
    212                                 create_parents ? " (and all parents)" : "");
     211                            cmdname, argv[i],
     212                            create_parents ? " (and all parents)" : "");
    213213                ret += create_directory(argv[i], create_parents);
    214214        }
Note: See TracChangeset for help on using the changeset viewer.