Skip to content

Commit

Permalink
print help w/o cmd
Browse files Browse the repository at this point in the history
Signed-off-by: Clemens Vasters <clemens@vasters.com>
  • Loading branch information
clemensv committed Feb 15, 2024
1 parent a684291 commit b78d4ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions avrotize/avrotize.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ def main():
x2a_parser.add_argument('--namespace', type=str, help='Namespace for the Avro schema', required=False)

args = parser.parse_args()

if args.command == 'p2a':
if args.command is None:
parser.print_help()
elif args.command == 'p2a':
avro_schema_path = args.avsc
proto_file_path = args.proto
convert_proto_to_avro(proto_file_path, avro_schema_path)
Expand Down

0 comments on commit b78d4ba

Please sign in to comment.