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

Changeset e341110 in mainline


Ignore:
Timestamp:
2012-04-18T20:31:45Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
0885f7e
Parents:
a44b58c
Message:

date: add support to the -h option (prints an help message)

File:
1 edited

Legend:

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

    ra44b58c re341110  
    6060        struct tm     t;
    6161
    62         while ((c = getopt(argc, argv, "d:t:")) != -1) {
     62        while ((c = getopt(argc, argv, "hd:t:")) != -1) {
    6363                switch (c) {
     64                case 'h':
     65                        usage();
     66                        return 0;
    6467                case 'd':
    6568                        wdate = (char *)optarg;
Note: See TracChangeset for help on using the changeset viewer.