Permalink
Browse files

Print help if no arguments were supplied

  • Loading branch information...
1 parent cba08e5 commit c16843ea6b13eaf3380c5bf0fb46ccae3d9f1205 @dnsmkl dnsmkl committed Dec 24, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 core/cli.h
View
@@ -31,6 +31,11 @@ void usage_info(int argc, char **argv)
void read_cli_options(int argc, char **argv)
{
int i;
+ if(argc == 1)
+ {
+ usage_info(argc, argv);
+ exit(0);
+ }
for(i=1;i<argc;i++)
{
if( argv[i][0] != '-')

0 comments on commit c16843e

Please sign in to comment.