Browse files

Extend help message.

  • Loading branch information...
1 parent 412ad31 commit 7c345987195368c3a7fc596c00d32dd2d5d14022 @sargon committed Jan 3, 2012
Showing with 12 additions and 11 deletions.
  1. +11 −10 panel.c
  2. +1 −1 panel.h
View
21 panel.c
@@ -386,20 +386,20 @@ usage()
printf(" -v -- print version and exit:\n");
printf(" --edge <left|right|top|bottom|none> (default:bottom) \n");
printf(" --align <left|right|center> (default:center)\n");
- printf(" --margin <number>\n");
+ printf(" --margin <number> (default:0)\n");
printf(" --widthtype <request|pixel|percent> (default:percent)\n");
- printf(" --width <number> (default:100)\n");
+ printf(" --width <number> (default:100)\n",PANEL_WIDTH_DEFAULT);
printf(" --heighttype <request|pixel> (default:pixel)\n");
- printf(" --height <number> (default:26)\n");
+ printf(" --height <number> (default:%i)\n",PANEL_HEIGHT_DEFAULT);
printf(" --SetDockType <true|false> (default:true)\n");
- printf(" --SetPartialStrut <true|false> (default:false)\n");
+ printf(" --SetPartialStrut <true|false> (default:true)\n");
printf(" --transparent <true|false> (default:false)\n");
printf(" --alpha <number> (default:127)\n");
- printf(" --tint <int>\n");
- printf(" --distance <number>\n");
- printf(" --distancefrom <number>\n");
- printf(" --expand <false|true>\n");
- printf(" --padding <number>\n");
+ printf(" --tint <int> (default:0xFFFFFFFF)\n");
+ printf(" --distance <number> (default:0)\n");
+ printf(" --distancefrom <left|right|top|bottom> (default:top) \n");
+ printf(" --expand <false|true> (default:true)\n");
+ printf(" --padding <number> (default:0)\n");
printf(" --monitor <number|primary> (default:0)\n");
}
@@ -432,7 +432,7 @@ main(int argc, char *argv[], char *env[])
p->allign = ALLIGN_CENTER;
p->edge = EDGE_BOTTOM;
p->widthtype = WIDTH_PERCENT;
- p->width = 100;
+ p->width = PANEL_WIDTH_DEFAULT;
p->heighttype = HEIGHT_PIXEL;
p->height = PANEL_HEIGHT_DEFAULT;
p->setdocktype = 1;
@@ -442,6 +442,7 @@ main(int argc, char *argv[], char *env[])
p->tintcolor = 0xFFFFFFFF;
p->xtopbg = None;
p->monitor = 0;
+ p->margin = 0;
for (i = 1; i < argc; i++) {
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
View
2 panel.h
@@ -19,7 +19,7 @@ enum { POS_NONE, POS_START, POS_END };
#define PANEL_HEIGHT_DEFAULT 26
#define PANEL_HEIGHT_MAX 200
#define PANEL_HEIGHT_MIN 2
-
+#define PANEL_WIDTH_DEFAULT 100
typedef struct {

0 comments on commit 7c34598

Please sign in to comment.