SpatiumPortae/portal

Seperate cli flags into global flags and subcommand flags

mellonnen opened this issue · 1 comments

When looking into solving #4 I saw that all flags are shared across all subcommands and that some flags had dual purposes.

For instance the -p flag doubles for specifying the port where to expect the rendezvous server to be running when supplied with the send and receive commands, and when supplied with the serve command it specifies on which port to run the rendezvous server.

I think it is probably wise to separate flags on a per-subcommand basis, as it does not make sense to have a --address flag for the serve command for instance. We could probably still have some global flags like verbose etc that are available to all subcommands.

merged in #13