Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(cli): fix cli client required
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Sep 12, 2019
1 parent 3db3444 commit 1d87dfc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gnes/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ def get_main_parser():
spp = pp.add_subparsers(dest='client', title='GNES client sub-commands',
description='use "gnes client [sub-command] --help" '
'to get detailed information about each client sub-command')
spp.required = True
# clients
set_client_http_parser(spp.add_parser('http', help='start a client that allows HTTP requests as input'))
set_client_cli_parser(spp.add_parser('cli', help='start a client that allows stdin as input'))
Expand Down

0 comments on commit 1d87dfc

Please sign in to comment.