Skip to content

Commit db23034

Browse files
committed
'gl' without any argument now displays the help message
1 parent 255b6d4 commit db23034

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gitless/cli/gl.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
from __future__ import unicode_literals
99

10+
import sys
1011
import argparse
1112
import traceback
1213
import pygit2
@@ -65,6 +66,10 @@ def main():
6566
for sub_cmd in sub_cmds:
6667
sub_cmd.parser(subparsers, repo)
6768

69+
if len(sys.argv) == 1:
70+
parser.print_help()
71+
return SUCCESS
72+
6873
args = parser.parse_args()
6974
try:
7075
if args.subcmd_name != 'init' and not repo:

0 commit comments

Comments
 (0)