All right. So welcome back again. So in this particular session, we try to see how to build a very simple way of showing all the help for each and every comment. So normally if you go to your update your build this issue help that help is going to list the physical right for us. So in case you want to know the help documentation for this one, you have to bring it in this particular option of capitalized as hope then can see the help for that one, right? So this is in late.
So what if you want to show all the help for the user right? So that they better we have to see every form of help in every form of usage of this particular CLR. So how do you do that? So let's see how to write a simple function out of the box to help us do that. So I'm just going to come to the top of my file and create a function call because it helped. Chris See, hope.
Then I'm going to pass in some video stuff right. So this, how to work with it. Would you go to CMD for the command, then uncle, which parent says to not the basic ID for our function, then the next option is going to be supplying the contest, which is going to be from our way of using contest. We'll click CTS contest. Then I'll pass the mic, click cool. And now is the corridor now passing my buddies right so there's the big idea.
So click that call contest because you're picking the contest then are supplying some viewers arguments with the advent of supplying the command is coming from here. Let me expand to the veto, which is coming from here. The next option is going to be some information about it twice. So let's go to a full name which is going to be the CMD name. CMD writes very busy So this is going to be the command name. So this is going to help us to get the particular command name itself, and then going to give us information about it right as a basic idea.
So that is it. let's admit that nest in the limited supply the parent to be equal to our period. That is what we need. So we are using this particular contest to help us do a recursive help to fetch all the views held for this particular app. So let's work on it. So let's print command now, to print CMD to get out of the post, so our distance is coming.
By default from click like that, the basic idea, then go to print our space, then you're going to move on in good command and available political invoice command and then we're going to go with the get attribute then would supply the CMD. Then next, we're going to be the commands that you want to supply so CMD I'm just going to put in a command Then how supply. Additionally, something very easy except a very simple that is a command variable to be grouping tree. So first up in my commands dot value. Since this is a dictionary now then I'm going to iterate up to be recursive. So if you have learnt about recursion before, we are running the same file at the end of it.
So let's just go over and over again. So recursive help, then our sub, then our contest, but there is something very basic. So if I save it now, and now to see this particular function, we have to come to my main function down here and then create another function to run around it right. So let's go with this buttload of main command. there let's create this particular function call to show or help to show every show or the help writing contest, the show all the help or to help in our supply particular function because it will now pass in my main function. So the mean is coming from our main function here, right.
So let's save it. Let's run it again. Let's see what we have done. So I'll come back to our help. Now, we have our show help here, then I can actually run this show help again to go issue help. Go to print or the Bureau's help information about it to give us an arrow because of something we missed something is supposed to be values, right?
What value because a dictionary. So this supposed to be values. So let's print again. Now it is showing us every particular help, it permits you to Sweetie, but the basic information about this, there's going to pick one of them that is the reverse, give us how to use it and pick the capitalize give us how to write that is the basic idea behind the show, even together with the show hope so. So in a nutshell, with this recursive help, you can get all the various help information about it. So this is a PC idea go to create a contest, you're going to the command and then the command name itself a print command, then you're going to get the whole for that particular contest that you have chosen, then we're going to create a dictionary, we're just going to narrow it down to that particular dictionary.
And then rando Casey helped me get over that. But then finally, we come back to displace, and then pass our main function behind are critical and the basic idea behind so let's try the same scenario done on one of the command that we did. So which was a subgroup CLR, which is this particular sub CLR to I just copy the function here, same function up that it took off our subgroup here. Right, then we are going to pass the last stuff here is going to be sure to pass it. The bottom. There, let's give it a description.
It's going to be Sure oil in the show, oh, help. Delighted if I save it now to our subscription. So I don't read a sub option does that help you be seeing the real stuff so we have our shoe help shoe all help. And I can run it from here as show, help, show help going to print every one of the help for us. Very, very interesting and very, very informative. So that is how to work with crazy folk to show each and every help message for our entire coma, not only just for the commands, but we're going to iterate through it and go to each and every one of them.
Give us the information for their base information for each and every one of them. Thank you for watching, and see you in the next session. Stay blessed