command line arguments

hi,,,,

I want to create a command prompt, for example "prompt>", so my prompt need to handle commands, for example "prompt>cmd", so i want to know how to get arguments for my own commands cmd, i.e. default argc should contain arguments count and argv should point to the argument vector i.e, for example "prompt>cmd arg1 arg2" now argc should contain 2 n argv should point to arguments,,,so wats may be the solution for this????

thanks in advance for the solution :slight_smile:

Are you expecting the user to type the prompt> or do you want that to automatically appear on the screen? To have it automatically appear, review the PS1 parameter.
For your cmd - you will need to make that cmd into a script. The script would then handle your arguments.

thanks :slight_smile: