Mentions légales du service

Skip to content

asebastudio arguments

Created by: ypiguet-epfl

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;
  }