psathyrella / partis

B- and T-cell receptor sequence annotation, simulation, clonal family and germline inference, and affinity prediction
GNU General Public License v3.0
55 stars 34 forks source link

turn --actions into subparsers #181

Closed psathyrella closed 8 years ago

psathyrella commented 8 years ago

as suggested by Namita (thanks!)

consider making the --action options into subparsers in the argparse library. With each subparser, you can then specify the specific parameters relevant to that action. If there are parameters shared by all, that can be placed into a parent parser that each subparser adopts.

matsen commented 8 years ago

👍

If you want an example, this is done nicely in seqmagick here, in which we don't actually require a flag for the --action verb. It's like git commit, etc.

psathyrella commented 8 years ago

done.