Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support sub commands without arguments #264

Open
DSsoto opened this issue May 22, 2017 · 1 comment
Open

Support sub commands without arguments #264

DSsoto opened this issue May 22, 2017 · 1 comment
Assignees

Comments

@DSsoto
Copy link
Member

DSsoto commented May 22, 2017

Right now we have to give call subc (rosrun sub8_missions move_command) with dummy args for comands that don't take any arguments like stop, level_off, zrp.

Success is being able to run

subc stop

or

subc zrp

without a hideous traceback message.

This task is open to new people!

@DSsoto DSsoto changed the title Support sub commands without argument Support sub commands without arguments May 22, 2017
@kingkevlar kingkevlar self-assigned this May 23, 2017
@DSsoto
Copy link
Member Author

DSsoto commented May 23, 2017

@kingkevlar, you probably just have to catch the exception (out of bounds indexing of the args from argparse) and check to make sure that the command was one of the ones we know to take no arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants