Commit 773e6719 authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

Update: Use symbolic constants in getopt long options list

parent 931720b6
...@@ -28,15 +28,15 @@ ...@@ -28,15 +28,15 @@
#include "i18n.h" #include "i18n.h"
struct option long_options[] = { struct option long_options[] = {
{"quiet", 0,0,'Q'}, {"quiet", no_argument, NULL, 'Q'},
{"help",0,0,'h'}, {"help", no_argument, NULL, 'h'},
{"version", 0, 0, 'V'}, {"version", no_argument, NULL, 'V'},
{"bits", 1, 0, 'b'}, {"bits", required_argument, NULL, 'b'},
{"endianness", 1, 0, 'e'}, {"endianness", required_argument, NULL, 'e'},
{"raw", 0, 0, 'R'}, {"raw", no_argument, NULL, 'R'},
{"sign", 1, 0, 's'}, {"sign", required_argument, NULL, 's'},
{"output", 1, 0, 'o'}, {"output", required_argument, NULL, 'o'},
{NULL,0,0,0} {NULL,0,NULL,0}
}; };
static int quiet = 0; static int quiet = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment