Package: avra / 1.4.2+dfsg-1

help-output-update.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Description: help output update
 Clean up and update help output usage and options.
Author: Milan Kupcevic <milan@debian.org>
Forwarded: https://github.com/Ro5bert/avra/pull/59
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/avra.c
+++ b/src/avra.c
@@ -44,30 +44,26 @@
 const char *title = "AVRA: advanced AVR macro assembler (version %s)\n";
 
 const char *usage =
-    "usage: avra [-f][O|M|I|G] output file type\n"
-    "            [-o <filename>] output file name\n"
-    "            [-d <filename>] debug file name\n"
-    "            [-e <filename>] file name to output EEPROM contents\n"
-    "            [-l <filename>] generate list file\n"
-    "            [-m <mapfile>] generate map file\n"
-    "            [--define <symbol>[=<value>]]\n"
-    "            [-I <dir>] [--listmac]\n"
-    "            [--max_errors <number>] [--devices] [--version]\n"
-    "            [-O e|w|i]\n"
-    "            [-h] [--help] general help\n"
-    "            <file to assemble>\n"
-    "\n"
-    "   --listfile    -l : Create list file\n"
-    "   --mapfile     -m : Create map file\n"
-    "   --define      -D : Define symbol.\n"
-    "   --includedir  -I : Additional include paths. Default: %s\n"
-    "   --listmac        : List macro expansion in listfile.\n"
-    "   --max_errors     : Maximum number of errors before exit\n"
-    "                      (default: 10)\n"
-    "   --devices        : List out supported devices.\n"
-    "   --version        : Version information.\n"
-    "   -O e|w|i         : Issue error/warning/ignore overlapping code.\n"
-    "   --help, -h       : This help text.\n";
+    "Usage: avra [OPTION]... FILE\n"
+    "Options:\n"
+    "   -d, --debugfile <filename>       debug file name\n"
+    "   -D, --define <symbol>[=<value>]  define symbol\n"
+    "   -e, --eepfile <filename>         create EEPROM contents file\n"
+    "   -f, --filetype O|M|I|G           output file type\n"
+    "   -I, --includepath <dir>          additional include paths\n"
+    "                                    (default: %s)\n"
+    "   -l, --listfile <filename>        create list file\n"
+    "   -m, --mapfile <mapfile>          create map file\n"
+    "   -o, --outfile <filename>         output file name\n"
+    "   -O, --overlap e|w|i              issue error/warning/ignore overlapping code\n"
+    "   --devices                        list out supported devices\n"
+    "   --listmac                        list macro expansion in listfile\n"
+    "   --max_errors <number>            maximum number of errors before exit\n"
+    "                                    (default: 10)\n"
+    "   --version                        version information\n"
+    "   -h, --help                       general help\n"
+    "   FILE                             file to assemble\n"
+    ;
 
 const struct dataset overlap_choice[4] = {
 	{ OVERLAP_ERROR,   "e"},