Skip to content

Commit

Permalink
I'm going to call this version 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
betaveros committed Aug 14, 2017
1 parent 76b82ea commit fa56b62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion paradoc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,12 +571,16 @@ def main() -> None:
help='Source Paradoc file')
parser.add_argument('-e', type=str, metavar='EXPR',
help='Paradoc expression to execute')
parser.add_argument('--version', action='store_true')
parser.add_argument('--list-builtins', action='store_true')
parser.add_argument('--list-short-builtins', action='store_true')
args = parser.parse_args()

try:
if args.list_builtins:
if args.version:
from paradoc.__version__ import version
print("paradoc version " + version)
elif args.list_builtins:
list_builtins(lambda _: True)
elif args.list_short_builtins:
list_builtins(lambda name: len(name) <= 2)
Expand Down
1 change: 1 addition & 0 deletions paradoc/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version = "0.1"

0 comments on commit fa56b62

Please sign in to comment.