Skip to content

Commit

Permalink
help update
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnDriscoll committed Aug 1, 2019
1 parent f55081d commit 2d7e86c
Show file tree
Hide file tree
Showing 19 changed files with 34 additions and 18 deletions.
6 changes: 5 additions & 1 deletion diceroll.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@ def roll(dice):
diceroll_log.info('diceroll was run without roll() called. Help will be sent if needed.')
print
if len(sys.argv) < 2:
print " Type 'diceroll.py -h' for help"
print ' Type:'
print " 'diceroll.py -h' for help"
print " 'diceroll.py -v' for version"
elif sys.argv[1] in ['-h', '/h', '--help', '-?', '/?']:
print ' diceroll is a module (containing a roll function)'
print ' that needs to be imported into Python.'
Expand All @@ -373,6 +375,8 @@ def roll(dice):
print
print ' Or just:'
print ' C:\>diceroll.py 2d6'
elif sys.argv[1] in ['-v', '/v', '--version']:
print ' roll(), release version ' + __release__ + ' for Classic Python 2.5.4'
else:
dice = sys.argv[1]
if "roll('" in dice:
Expand Down
Binary file modified docs/build/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/build/.doctrees/tutorial.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/build/about_the_author.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2019, SHONNER CORP.
Last updated on Jul 20, 2019.
Last updated on Aug 01, 2019.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/build/debugging.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2019, SHONNER CORP.
Last updated on Jul 20, 2019.
Last updated on Aug 01, 2019.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/build/designers_notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2019, SHONNER CORP.
Last updated on Jul 20, 2019.
Last updated on Aug 01, 2019.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/build/diceroll.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2019, SHONNER CORP.
Last updated on Jul 20, 2019.
Last updated on Aug 01, 2019.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/build/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2019, SHONNER CORP.
Last updated on Jul 20, 2019.
Last updated on Aug 01, 2019.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/build/glossary.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2019, SHONNER CORP.
Last updated on Jul 20, 2019.
Last updated on Aug 01, 2019.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/build/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2019, SHONNER CORP.
Last updated on Jul 20, 2019.
Last updated on Aug 01, 2019.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/build/introduction.html
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2019, SHONNER CORP.
Last updated on Jul 20, 2019.
Last updated on Aug 01, 2019.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/build/license.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2019, SHONNER CORP.
Last updated on Jul 20, 2019.
Last updated on Aug 01, 2019.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/build/modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<link rel="index" title="Global index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="top" title="diceroll 2.4 Operations Manual" href="index.html" />
<generator object at 0x037EAB48>
<generator object at 0x03568440>

<script type="text/javascript">
DOCUMENTATION_OPTIONS.COLLAPSE_MODINDEX = true;
Expand Down Expand Up @@ -92,7 +92,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2019, SHONNER CORP.
Last updated on Jul 20, 2019.
Last updated on Aug 01, 2019.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/build/samples.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2019, SHONNER CORP.
Last updated on Jul 20, 2019.
Last updated on Aug 01, 2019.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/build/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<link rel="index" title="Global index" href="genindex.html" />
<link rel="search" title="Search" href="" />
<link rel="top" title="diceroll 2.4 Operations Manual" href="index.html" />
<generator object at 0x038E1A30>
<generator object at 0x03867B20>
<script type="text/javascript" src="_static/searchtools.js"></script>

</head>
Expand Down Expand Up @@ -83,7 +83,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2019, SHONNER CORP.
Last updated on Jul 20, 2019.
Last updated on Aug 01, 2019.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/build/searchindex.json

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion docs/build/tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ <h2>Rolling the Dice<a class="headerlink" href="#rolling-the-dice" title="Permal
C:\&gt;diceroll.py 2d6-2

Your 2D6-2 roll is 7.</pre>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">Typing <tt class="docutils literal"><span class="pre">diceroll.py</span> <span class="pre">-h</span></tt> will provide some help.</p>
</div>
<p><em>New in version 2.4.1</em></p>
<p>A TEST roll that calculates percentages for 2D6 has been added:</p>
<div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">roll</span><span class="p">(</span><span class="s">&#39;test&#39;</span><span class="p">)</span>
Expand Down Expand Up @@ -203,7 +207,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2019, SHONNER CORP.
Last updated on Jul 20, 2019.
Last updated on Aug 01, 2019.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
6 changes: 5 additions & 1 deletion docs/source/diceroll.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@ def roll(dice):
diceroll_log.info('diceroll was run without roll() called. Help will be sent if needed.')
print
if len(sys.argv) < 2:
print " Type 'diceroll.py -h' for help"
print ' Type:'
print " 'diceroll.py -h' for help"
print " 'diceroll.py -v' for version"
elif sys.argv[1] in ['-h', '/h', '--help', '-?', '/?']:
print ' diceroll is a module (containing a roll function)'
print ' that needs to be imported into Python.'
Expand All @@ -373,6 +375,8 @@ def roll(dice):
print
print ' Or just:'
print ' C:\>diceroll.py 2d6'
elif sys.argv[1] in ['-v', '/v', '--version']:
print ' roll(), release version ' + __release__ + ' for Classic Python 2.5.4'
else:
dice = sys.argv[1]
if "roll('" in dice:
Expand Down
4 changes: 4 additions & 0 deletions docs/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ D00 has been replaced with D100.

.. literalinclude:: databox2.dat

.. note::

Typing ``diceroll.py -h`` will provide some help.

*New in version 2.4.1*

A TEST roll that calculates percentages for 2D6 has been added:
Expand Down

0 comments on commit 2d7e86c

Please sign in to comment.