Skip to content

Commit

Permalink
doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
gasolin committed Oct 8, 2007
1 parent 66bdc16 commit afb160b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
zhpy Changelog
====================

1.1 (10/10/2007):
1.1 (10/8/2007):
--------------------
code name: Echoes

*Changes*

*Features*

* add commandline option '--tw' to convert python code to twpy
* add commandline option '--cn' to convert python code to cnpy

*Fixes*

* fix verbose options in commandline tool
Expand Down
27 changes: 12 additions & 15 deletions zhpy/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
from zhpy import annotator, convertor, try_run

def commandline():
"""zhpy, the python language on chinese
"""zhpy, the python language in chinese
Accept options:
-i --input:
speficy the input source
Expand All @@ -51,27 +51,20 @@ def commandline():
zhpy information
-v --verbose:
show zhpy progress in detail
--tw
--tw:
convert python to twpy
--cn
--cn:
convert python to cnpy
help:
get information:
::
$ zhpy --info
zhpy --info
interpreter usage:
::
$ zhpy
$ zhpy --tw
$ zhpy --cn
zhpy [--tw | --cn]
command usage:
zhpy [-i|-p] input [-o] [output] [-e] [encoding] [-v]
zhpy [-i | -p] input [-o] [output] [-e] [encoding] [-v]
::
Expand All @@ -84,6 +77,10 @@ def commandline():
zhpy [-c] source [-e] [encoding] [-v]
convertor usage:
zhpy [--tw | --cn] input.py [-v]
::
$ zhpy --tw input.py [-v]
$ zhpy --cn input.py [-v]
Expand Down

0 comments on commit afb160b

Please sign in to comment.