Check-in [527018c138]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Finish all help output
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 527018c138bb840c8df11045ca1cfc8a35112841
User & Date: bapt 2014-06-16 14:49:09
Context
2014-06-16
15:05
Print the actual error message when failing check-in: 72ebaa6d61 user: bapt tags: trunk
14:49
Finish all help output check-in: 527018c138 user: bapt tags: trunk
14:48
Finish all help messages Closed-Leaf check-in: 341c54038f user: bapt tags: improved_ui
14:21
Convert build system to autotools check-in: 91d28f951a user: bapt tags: trunk
Changes

Changes to cplanet.c.

537
538
539
540
541
542
543
544










545
546
547
548
549




550
551
552
553
554





555
556
557
558
559




560
561
562
563
564





565
566
567
568
569
570
571
	nerr_error_string(neoerr,&neoerr_str);
	warnx("%s", neoerr_str.buf);
}

static void
usage(void)
{
	errx(1, "usage: cplanet -c conf.hdf [-l]\n");










}

static void
usage_feed(void)
{




}

static void
usage_config(void)
{





}

static void
usage_update(void)
{




}

static void
usage_output(void)
{





}

static int
exec_output(int argc, char **argv)
{
	sqlite3_stmt *stmt;
	int i;







|
>
>
>
>
>
>
>
>
>
>





>
>
>
>





>
>
>
>
>





>
>
>
>





>
>
>
>
>







537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
	nerr_error_string(neoerr,&neoerr_str);
	warnx("%s", neoerr_str.buf);
}

static void
usage(void)
{
	fprintf(stderr, "Usage cplanet [options] <command>\n\n");
	fprintf(stderr, "Global options:\n");
	fprintf(stderr, "\t%-20s%s\n", "-c <configfile>", "Specify the configuration file");
	fprintf(stderr, "\t%-20s%s\n", "-d <dbfile>", "Specify the database file\n");
	fprintf(stderr, "Commands supported:\n");
	fprintf(stderr, "\t%-20s%s\n", "config", "Change config settings");
	fprintf(stderr, "\t%-20s%s\n", "feed", "List/Manage feeds");
	fprintf(stderr, "\t%-20s%s\n", "output", "Configure the outputs of cplanet");
	fprintf(stderr, "\t%-20s%s\n", "update", "Fetch feeds and update datbase");

	exit(1);
}

static void
usage_feed(void)
{
	fprintf(stderr, "Usage:\n");
	fprintf(stderr, "%-40s%s\n", "cplanet feed", "List current feeds");
	fprintf(stderr, "%-40s%s\n", "cplanet feed <name> <home> <url>", "");
	exit (1);
}

static void
usage_config(void)
{
	fprintf(stderr, "Usage:\n");
	fprintf(stderr, "%-40s%s\n", "cplanet config", "List current configuration");
	fprintf(stderr, "%-40s%s\n", "cplanet config <key> <value>", "Assign <value> to the <key> configuration entry");

	exit(1);
}

static void
usage_update(void)
{
	fprintf(stderr, "Usage:\n");
	fprintf(stderr, "%-40s%s\n", "cplanet update", "");

	exit(1);
}

static void
usage_output(void)
{
	fprintf(stderr, "Usage:\n");
	fprintf(stderr, "%-40s%s\n", "cplanet output", "List currently defined output");
	fprintf(stderr, "%-40s%s\n", "cplanet output <path> <template>", "Create a new output with a template defined as <template> and the generated files will be in <path>");

	exit(1);
}

static int
exec_output(int argc, char **argv)
{
	sqlite3_stmt *stmt;
	int i;