Skip to content

Commit a20d985

Browse files
committed
README.md update
1 parent e7d2203 commit a20d985

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
Replace tedious argument parsing with declarative definitions:
2323

24+
getopt way - verbose and error-prone
2425
```c
25-
// Old way - verbose and error-prone
2626
int opt;
2727
while ((opt = getopt(argc, argv, "vo:p:")) != -1) {
2828
switch (opt) {
@@ -32,8 +32,10 @@ while ((opt = getopt(argc, argv, "vo:p:")) != -1) {
3232
}
3333
}
3434
// + manual validation, help generation, error handling...
35+
```
3536

36-
// Argus way - declarative and complete
37+
**Argus** way - declarative and complete
38+
```c
3739
ARGUS_OPTIONS(
3840
options,
3941
HELP_OPTION(),

0 commit comments

Comments
 (0)