Skip to content

processing argument to commands #148

Answered by daniele77
vlsireddy asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @vlsireddy ,
first of all, thank you for using cli library.

The simplelocalsession is an example of using a SimpleLocalSession that does not provide autocompletion and other valuable features.
Instead, you should use CliLocalSession (see the examples complete or pluginmanager).

Cli library is not for parsing application parameters, instead, it provides an interactive shell where you can enter commands in a positional way.
Every command has this syntax:

<command_name> <parameter1> <parameter2> <parameter3> ...

So, instead of:

hello -time 1000 -flow 2000 -stream 3000 -Parallel yes

you can have instead:

hello 1000 2000 3000 true

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vlsireddy
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants