Closed jovanbulck closed 9 years ago
e.g. --no-percentage-summary
--show-motd
--show-last-login-time
Guest mode should be combinable with dialog
This is something we need to work on, indeed. We should implement a decision tree with combinable and non-combinable options.
Moreover, the credentials querying should also be passed to the communicator?
That's an interesting idea. I'll look into it.
These are the current option groups:
usage: kotnetcli.py [-h] [-i | -o | -1 | -0] [-k | -f | -g] [-c | -u | -t | -d | -b | -s | -q]
Actually --help
should be mutually exclusive with all the other groups, I think.
The --help
group then represents the group of options that cat some output and exit, without executing any of the kotnet logic. Other useful options in this group:
--license
- display a summary of the CC license and a link to the full license--version
- cat the version number and maybe some other useful info of the platformDon't know if its possible but the idea would be : (read '|' as inclusive OR )
usage: kotnetcli.py [-h -l -v] XOR [ [-i | -o | -1 | -0] | [-k | -f | -g] | [-c | -u | -t | -d | -b | -s | -q] ]
This is already the case. Try combining anything with the --help
flag. You'll get no output except for the --help
dialog.
Indeed cool :-)
What about adding the other option ideas to this group?
The
--help
group then represents the group of options that cat some output and exit, without executing any of the kotnet logic. Other useful options in this group:
--license
- display a summary of the CC license and a link to the full license--version
- cat the version number and maybe some other useful info of the platform
Yes, those will definitely be included. Do you know of a clean way to set the --version
variable? I would rather not hardcode it.
I'm afraid you'll have to hard code it in one single constant somewhere...
The --version
flag is included now. The --licence
flag will not be available for the time being, as it would require me to 'code around it': kotnetcli --licence -i
would by default still log me in, for instance.
It's possible to fix that too by putting the --licence
flag in the top of the decision tree, but that would make the program more complex. To me, it's not worth it at the moment.
9fce6d7d9713c9c79b147e864ceef270b83248e7
Guest mode should be combinable with dialog for example This now auto starts curses:
Moreover, the credentials querying should also be passed to the communicaotor? This way the dialog communicator could ask the credentials via dialogs...