Skip to content

Commit

Permalink
doc: improve help and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pieleric committed Sep 20, 2012
1 parent fb8013a commit 8609bcd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
28 changes: 24 additions & 4 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,36 @@ Python (v2.7)
See the doc/INSTALL.txt document for the complete installation procedure.

= Basic usage =
Launch the "Odemis" program, or type on a terminal:
odemis-start
On the first time, it will ask for the password. Eventually the GUI (Graphical
User Interface) will appear.

It is not usually necessary, but if you want, to fully stop odemis (GUI and back-end), type:
odemis-stop

= Advanced usage =
odemisd is the command line interface to start and manage the Odemis backend. It
should be started first.

Run as "odemisd ...", with ... replaced by the correct arguments.
See "odemisd --help" for information.
Run as "odemisd ...", with ... replaced by the correct arguments. For all the
possible commands see:
odemisd --help

For example:
PYTHONPATH=./src/:../Pyro4/src/ ./src/odemis/odemisd/main.py --daemonize --log-level=2 src/odemis/odemisd/test/optical-sim.odm.yaml
odemisd --daemonize --log-level=2 src/odemis/odemisd/test/optical-sim.odm.yaml



To use the command line interface use:
PYTHONPATH=./src/:../Pyro4/src/ ./src/odemis/cli/main.py --help
odemis-cli --help

To see the list of components:
odemis-cli --list

For example, to set the emission values for the light engine "Spectra", type:
odemis-cli --set-attr Spectra emissions "0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0"


= License =
GPLv2, see the LICENSE.txt file for the complete license.
Expand Down
3 changes: 2 additions & 1 deletion src/odemis/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,8 @@ def main(args):
help="List the properties of a component")
dm_grpe.add_argument("--set-attr", "-s", dest="setattr", nargs=3, action='append',
metavar=("<component>", "<attribute>", "<value>"),
help="Set the attribute of a component (lists are delimited by commas)")
help="Set the attribute of a component (lists are delimited by commas,"
" dictionary keys are delimited by colon)")
dm_grpe.add_argument("--move", "-m", dest="move", nargs=3, action='append',
metavar=("<component>", "<axis>", "<distance>"),
help=u"move the axis by the amount of µm.")
Expand Down

0 comments on commit 8609bcd

Please sign in to comment.