Closed thatsdone closed 1 year ago
Hi,
Sorry, I noticed that I have to double quote --exec
parameters like:
$ ./nr-cli imsi-208930000000008 --exec "ps-release 1"
Actually, there are some examples in wiki (https://github.com/aligungr/UERANSIM/wiki/Usage).
I'm closing this issue, but still I'm feeling it's better to have copies of Wiki contents in the source tree.
Hi,
I think nr-cli command implements execution of several sub commands, for example info, status, ps-list and ps-release etc. (In this sense, there is not enough documentation of nr-cli as mentioned in #664)
I got errors for sub commands with arguments, for example, 'ps-release' like below.
At first, get node name list.
'ps-list' works fine like below.
nr-cli can issue PDU Session release using 'ps-relase', and the subcommand takes argument to specify PDU session ID.
But 'nr-cli' complains like below.
In the above example, 'imsi-208930000000008' is the node name which nr-cli requires. As you can see, the next token (in the above example '1') of 'ps-release' is handled as the second positional parameter, and we got an error like above. I got the same error whatever I used for the token(s).
I think ReadOptions() has some problems.