Input parameters

If Amir is run from the command line, you can use options to change the performance according to your need.
to see the command line parameters you can use the h option as follows:
amir -h
the output will be like below.

Usage: amir [options]
Options:
 --version               show program's version number and exit
 -h, --help              show this help message and exit
 -v, --verbose           Show debug messages
 -n, --noisy             Show all debug messages
 -d URL, --database=URL
                       Set custom url for database (RFC-1738)
                       Examples:
                       -d sqlite:////absolute/path/to/foo.db
                       -d sqlite:///:memory:
                       -d mysql://user:pass@localhost/foo
 -p PATHNAME, --path=PATHNAME
                       Set data path

Note that in windows operating system messages are stored along with the executable file in  two separate file called error.log and stdout.log .

  • Change settings folder path: by default, the settings file and initial database will be created in the amir folder from user's home directory .( username/home/ in Linux and username/documents and settings in windows)
    using the -p or --patch switches you can introduce another path for the settings folder.
  • Select a database: Amir in the first run create a database file that called amir.sqlite in the settings folder. with the -d or --database switches you can use another file as the database.
  • Error message for troubleshooting (debugging):  if the software have a problem you can see the error messages with the -v or --verbose switches.
  • View all messages:  if with the -v switches you can't get enough information , you can use with -n or  --noisy switches to see the all of messages. you can send  the program outputs to developers team , until they help you to diagnose and fix the problem. 

Previous page: Guide