Skip to content

Commit

Permalink
Merge pull request #18 from Carreau/help-exit
Browse files Browse the repository at this point in the history
print help and exit if no args
  • Loading branch information
takluyver committed Apr 12, 2015
2 parents 7a05e1a + b7570d0 commit 35d11bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def main(argv=None):
from .init import TerminalIniter
TerminalIniter().initialise()
else:
sys.exit('No command specified')
ap.print_help()
sys.exit(1)

if __name__ == '__main__':
main()

0 comments on commit 35d11bc

Please sign in to comment.