Skip to content

Commit

Permalink
Use progname instead of argv[0]
Browse files Browse the repository at this point in the history
  • Loading branch information
amarz45 authored and mwh committed Oct 16, 2022
1 parent 379d2f5 commit 0a56eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dragon.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ int main (int argc, char **argv) {
if (strcmp(argv[i], "--help") == 0) {
mode = MODE_HELP;
printf("dragon - lightweight DnD source/target\n");
printf("Usage: %s [OPTION] [FILENAME]\n", argv[0]);
printf("Usage: %s [OPTION] [FILENAME]\n", progname);
printf(" --and-exit, -x exit after a single completed drop\n");
printf(" --target, -t act as a target instead of source\n");
printf(" --keep, -k with --target, keep files to drag out\n");
Expand Down

0 comments on commit 0a56eb2

Please sign in to comment.