All right, so welcome back again. So in the previous sessions, we have done a lot. And we learnt about how to work with option argument. And in working with option argument, we saw how to work with a long format and in short format, right. But you notice that this particular 30 I've been doing all along, in case you run it, it's going to give you an error. Right to the best way is that mostly when you're putting in your long format or short format format of your argument, this short format must come before your long format.
So if I see this intellectual have done together with the colors and everything, and I run it like this, right, I run this particular stuff is working, right? But if I make it a short format, like this, as we have a de F is going to give us a new, it's not going to work right so unknown option F. So the reason is giving us this particular option is that the short format must always come before the long format to have to evacuate this one. Copy this one here and paste it in front of this with my comma. Right? The same thing for the long format. let's paste the photo of it, then it's going to work perfectly right.
So that is something that you have to notice, right? Very, very important. That's how to fix that issue in a simple way. So once you bring the short formatting font, and I've come back again to this, if I run the help for about semester here, everything is working perfectly well. Now I can specify the short format of f and it's going to work Hello, your name is Peter is working. This was overly by Mosley should make it one buddy, right.
So let's make it as only one value, then it's going to work perfectly because we've identified that one word so let's write again, a bit here. Around this one, let's go with just l for the last name and the D with us. Jameson. Jameson going to write it is how to correct or work with the short format of the ocean argument. So you should always be Phase one, right, not the last one. And it should have only one correct way to make it make more sense as the big idea about it.
So intuitively, this is another way of working with this. So in case you have a Command Option, and we want to add a solution to match with a Command Option, let's come back to the same thing that you did. So let's create a simple program. Good command, right? For the Command Option. The enlisted a command is called C. Right?
So we want to add a shortcut for this particular command is going to be our description. see something? What if I just go with the alias alias, the alias here to can be s right to the alias there's going to be something like they should format for that particular particular command. Very interesting with temporary sample. So let's see this one that you have done so far. And let's come back to our terminal and illustrate again.
So if I come back to the help option, That's so good. So you have in our command options you have the short format, the long format right? The normal for the commands we have our command. So in a short format for the commands, we can run it as this C for the long format or iterators as well as how to work with the LS or to add a short format for this command right using the alias to short. You have to remember that you have to pass in digital much always before the long format. In case you want to add short command for the command itself we just go into Yes, we thank you for watching and see you in a session.
Stay blessed.