blachlylab / vgel

Virtual gel fragment size selection
0 stars 0 forks source link

arg order matters and is counter-intuitive #1

Open kwkroll32 opened 8 years ago

kwkroll32 commented 8 years ago

Using Windows & go 1.5.3

The command argument must be last (i.e. come after the input argument, etc.) or it throws an error. The error/help text even shows that you should run it as go run vgel.go COMMAND ARGS but it only works as go run vgel.go ARGS COMMAND for me.

arg_order_inverted

jblachly commented 8 years ago

This expected behavior; --input --output --min --max were added as "global" flags before I added subcommands. However I agree they shoudl be moved to flags belonging to the subcommands. Each command will have identical flags but I guess this is okay