AnemoneLabs / unmessage

Privacy enhanced instant messenger
GNU General Public License v3.0
42 stars 7 forks source link

Parse CLI commands with argparse #43

Open felipedau opened 7 years ago

felipedau commented 7 years ago

The CLI has its own command parsing, which is very simple and limited. With argparse it would be possible to handle sub-commands and multiple optional arguments as well as have a better command parser in general.

Example of a more organized interface: instead of having req-send and req-accept commands, there would be a single req command, with send and accept sub-commands.