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

asebastudio arguments #870

Open
ypiguet-epfl opened this issue Mar 22, 2018 · 0 comments
Open

asebastudio arguments #870

ypiguet-epfl opened this issue Mar 22, 2018 · 0 comments
Labels

Comments

@ypiguet-epfl
Copy link
Collaborator

The command-line options of asebastudio have issues:

  • The usage information displayed by -h is given below:
Usage: asebastudio (OPTIONS|TARGET)* 
  where
OPTION is one of:
 -h      this help
 -ar     auto memory refresh enabled by default
 -doc    show documentation instead of studio
TARGET is a Dashel target (the last one is always considered)

If the star stands for zero or more repetitions, then it doesn't describes correctly what's implemented in function main in aseba/clients/studio/main.cpp, where the first argument (not the last one) not beginning with a hyphen is the target, and subsequent arguments are ignored.

  • -h is difficult to discover: unknown options like --help are ignored without error
  • -v to get the version would be very useful. It could be implemented with something like
  else if (cmd == "v")
  {
    cout << ASEBA_VERSION << endl;
    return 0;
  }

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

No branches or pull requests

2 participants