Fixed the empty input segfault
[iomenu.git] / iocomplete
blob77d2f3563ab3862cdc8e7ae7212ac7acca22c0cb
1 # Complete the input with a completion tree directory.
3 # o option
4 #       check if there is a subdirectory with this label.  If so, start the
5 #       prompt again with this list, otherwise, come back to the main loop
7 # f flag
10 # p path
11 #       prompt for path in another loop, then start the main loop
13 # r raw
14 #       let the user input some value directly, without option
17 nmcli          top directory with the same name as the command
19 `- FLAGS       flags to pass as command line arguments to iomenu
21 `- COMPLETION  completion file with the common options
23 `- -mode       if some option has sub-options, add one file per option name
25 `- networking  if some option has sub-options and sub-sub-options, add one
26                directory per option name, and add the same file structure
27                in it.