cli.rst.txt 672 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. Command-Line
  2. ------------
  3. Run ``python roll.py [options] <expr>``
  4. ::
  5. Usage:
  6. roll [options] <expr>
  7. Options:
  8. -s Numeric score only
  9. -v Verbose result
  10. -h --help Displays help message
  11. --version Displays current xdice version
  12. - Basic use
  13. ::
  14. python roll 1d6+1
  15. >> 2 ([1]+1)
  16. - Numeric score only (-s)
  17. ::
  18. python roll -s 1d6+1
  19. >> 2
  20. - Verbose (-v)
  21. ::
  22. python roll -v 2*(3D6L1+2D4)+R3(1d4+2)
  23. >> (2*(3d6l1(scores:[5, 6], dropped:[3])+2d4(scores:[2, 1]))+(1d4(scores:[4])+2+1d4(scores:[1])+2+1d4(scores:[4])+2))