Ignore:
Timestamp:
2018-12-11T11:39:31Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ac2caecb
Parents:
25cfc3d
Message:

adding proper extended help message

File:
1 edited

Legend:

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

    r25cfc3d r3301452  
    8787void help_cmd_alias(unsigned int level)
    8888{
    89         printf("`%s' sets an alias, displays an alias or lists all aliases\n", cmdname);
    90         return;
     89        if (level == HELP_SHORT) {
     90                printf("`%s' sets an alias, displays an alias or lists all aliases\n", cmdname);
     91        } else {
     92                help_cmd_alias(HELP_SHORT);
     93                printf("Usage: `%s' [newalias[='existingCMD --flags] ...]'\n\n"
     94                    "If no parameters are given it will display all existing aliases.\n"
     95                    "If a parameter without an assignment is given, the value of the given alias will be returned.\n"
     96                    "If a parameter with an assignment is given, the alias will be created or updated for the given value. "
     97                    "It is possible to create an alias to a different alias. A circularity will prevent an alias to be resolved.\n",
     98                    cmdname);
     99        }
    91100}
    92101
Note: See TracChangeset for help on using the changeset viewer.