commit 2cf24cf9764cd74f440e40523252f4455bb82eaf
parent 9f5345754adf287753ae133f93dd87ee4b499b94
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 16 Dec 2016 11:03:22 +0100
Update the CLI specification
Update the syntax of the "-r" option
Diffstat:
| M | doc/cli | | | 34 | +++++++++++++++++++++++++++++----- |
1 file changed, 29 insertions(+), 5 deletions(-)
diff --git a/doc/cli b/doc/cli
@@ -5,9 +5,11 @@ solstice
-o OUTPUT # defaulting to stdout if not defined
-q # don't print a message if no INPUT is submitted
-n INTEGER # Realisations count
- -r [camera] # Switch in rendering mode
+ -r [rendering] # Switch in rendering mode
INPUT # Input scene in YAML
+solstice -r img=1280x720:pos=0,100,0:tgt=0,0,0:up=0,1,0:fov=70
+
<date-list> ::=
<date> [ ... ]
@@ -18,10 +20,32 @@ solstice
<sun-dir> [ ... ]
<sun-dir> ::=
- azimuth:elevation
+ REAL:REAL # azimuth:elevation
<pos-on-earth> ::=
- longititude:latitude:altitude
+ REAL:REAL:REAL # longititude:latitude:altitude
+
+<rendering> ::=
+ <rendering-option>[:<rendering-option> ... ]
+
+<rendering-option> ::=
+ <fov> | <img> | <position> | <target> | <up>
+
+<fov> ::=
+ fov=<real3>
+
+<img> ::=
+ img=INTEGERxINTEGER
+
+<position> ::=
+ pos=<real3>
+
+<target> ::=
+ tgt=<real3>
+
+<up> ::=
+ up=<real3>
+
+<real3> ::=
+ REAL,REAL,REAL
-<camera> ::=
- position[:target:[up]]