Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Commit

Permalink
Update readme.md and main entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
rightlag committed Aug 7, 2017
1 parent 4fe2df3 commit 1992da8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions aptos/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def convert(arguments):
def main():
parser = argparse.ArgumentParser(description='''
aptos is a tool for validating client-submitted data using the
JSON Schema vocabulary and converting JSON Schema documents to
JSON Schema vocabulary and converts JSON Schema documents to
different data-interchange formats.
''', usage='%(prog)s [arguments] SCHEMA', epilog='''
More information on JSON Schema: http://json-schema.org/''')
Expand All @@ -44,7 +44,8 @@ def main():
validation.set_defaults(func=validate)

conversion = subparsers.add_parser(
'convert', help='Convert a JSON Schema to a data-interchange format')
'convert', help='''
Convert a JSON Schema to a different data-interchange format''')
conversion.add_argument(
'-format', type=str, choices=['avro'], help='data-interchange format')
conversion.set_defaults(func=convert)
Expand Down
5 changes: 3 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

## Usage

`aptos` supports validating client-submitted data and generating Avro structured messages from a given JSON Schema document.
`aptos` supports validating client-submitted data and generates Avro structured messages from a given JSON Schema document.

```
usage: aptos [arguments] SCHEMA
Expand All @@ -31,7 +31,8 @@ optional arguments:
Arguments:
{validate,convert}
validate Validate a JSON instance
convert Convert a JSON Schema to a data-interchange format
convert Convert a JSON Schema to a different data-interchange
format
More information on JSON Schema: http://json-schema.org/
Expand Down

0 comments on commit 1992da8

Please sign in to comment.