diff --git a/xcpt.c b/xcpt.c index fad78dac75a6ed4f433771af7710688cc2872468..deca8dd9021e9a9c12cc66a7fa1ded157c485c5d 100644 --- a/xcpt.c +++ b/xcpt.c @@ -70,6 +70,10 @@ static char *xstrdup(const char *x) /*** Options ***/ #define OPTIONS \ + O(JOB_ID, "?") \ + O(USERNAME, "?") \ + O(JOB_TITLE, "?") \ + O(COPIES, "1") \ O(LANGUAGE, "?") \ O(MEDIASIZE, "A4") @@ -227,15 +231,17 @@ static void parse_pjl(void) } } -int main(int argc, const char **argv) +int main(int argc, char **argv) { if (argc < 5) { fprintf(stderr, "Usage: xcpt <job> <user> <title> <num-copies> [<options>]\n"); return 1; } - - (void) argv; // FIXME + set_option("JOB_ID", argv[1]); + set_option("USERNAME", argv[2]); + set_option("JOB_TITLE", argv[3]); + set_option("COPIES", argv[4]); parse_pjl();