That'll always be a problem with CLIs - you have to know some things to get started. I think it could be better, though.
If I type "ls" on a *nix box, I'll get a directory listing. But, what if I want to customize that listing?
I try "ls -?" to get help, and get an error, but also a mostly useless usage message.
I then do "man ls", and get this monstrosity that pulls me away from my task.
On that platform, the equivalent command to "ls" is "WRKOBJ" (note that IBM i tends to use a very rigid three letter word vocabulary in its commands, which ALSO helps discovery some - odds are good that WRK, CHG, CRT, DSP, or STR are going to be the first three letters of your command).
If I issue "WRKOBJ", I get this.
So, it popped up a form, populated with default values for the things that have defaults.
I can even drill down further, let's say that I'm not sure what my options are for Library. I can hit F4 on that field, and get this. Now I have some more examples to choose from.
@elomatreb @Elizafox Let's say I want to run that command again, though. Now that I know a bit more about the system, I don't want to go through the form all over again, and I want the values I had before. At my main menu, on the command line, I hit F9, and get this.
Now I know that I can just enter this, and get all objects in my current library. Or, I can change that to, say, "WRKOBJ OBJ(QGPL/*ALL)", to get all objects in the IBM-provided general purpose library.
Really, I was going for the user interface of popping up a prompt to provide arguments to commands where you don't necessarily know the syntax or all of the arguments.
I'll use PWRDWNSYS as another example, as it shows another part of this. I can choose how I want to power down, the delay, whether to restart, and where to start from next time - the common options.
If I hit that, I get some lesser-used options, that some people will care about - in this case, how the subsystems (which hold the equivalent of daemons) shut down, what happens if it takes too long to shut down, and whether to confirm the shutdown.
A UI like this could be used by a designer to simplify discovery of the more important options, rather than overload a new user with less-relevant options like a man page does.
They're a good thing to have around, but I'd like also like a form I can fill out with the options I want - it doesn't pull me entirely away from my task, but rather allows me to continue entering my arguments in a more guided fashion. (Also note that in IBM i, if I've already entered some arguments and hit F4, it pre-fills the form with those arguments.)
This page describes the mastodon.social instance - wondering what Mastodon is? Check out joinmastodon.org instead! In essence, Mastodon is a decentralized, open source social network. This is just one part of the network, run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!
Hero image by @b_cavello