dj -A has been replaced with dj -a "\0" or the more brief dj -a ''.
dj -d was mostly necessary for debugging number parsing and putting it in an option rather than a compilation flag, while seemingly sensible at the time, is something I now regret.
dj -q can be replaced with something like dj -o /dev/null 2>&1 | grep -ve '^\t' -e 'Partial'.
These changes have also been made in the man page.
Additionally, I reworked the program to use more sensible scoping for variables (no more globals, except static allocations) and fixed some functions to make more sense in usage.
- `dj -A` has been replaced with `dj -a "\0"` or the more brief `dj -a ''`.
- `dj -d` was mostly necessary for debugging number parsing and putting it in an option rather than a compilation flag, while seemingly sensible at the time, is something I now regret.
- `dj -q` can be replaced with something like `dj -o /dev/null 2>&1 | grep -ve '^\t' -e 'Partial'`.
These changes have also been made in the man page.
Additionally, I reworked the program to use more sensible scoping for variables (no more globals, except static allocations) and fixed some functions to make more sense in usage.
This isn’t a change made here but this should say “diagnostic message” because it is an adjective and because it would be in line with the rest of the manpage.
This isn’t a change made here but this should say “diagnostic message” because it is an adjective and because it would be in line with the rest of the manpage.
emma marked this conversation as resolved
trinity
changed title from WIP: dj(1): Refactor source a bit, remove -adq to WIP: dj(1): Refactor source a bit, remove -Adq2024-06-27 05:59:12 -06:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
dj -Ahas been replaced withdj -a "\0"or the more briefdj -a ''.dj -dwas mostly necessary for debugging number parsing and putting it in an option rather than a compilation flag, while seemingly sensible at the time, is something I now regret.dj -qcan be replaced with something likedj -o /dev/null 2>&1 | grep -ve '^\t' -e 'Partial'.These changes have also been made in the man page.
Additionally, I reworked the program to use more sensible scoping for variables (no more globals, except static allocations) and fixed some functions to make more sense in usage.
@@ -104,3 +92,1 @@.B -qoption is specified, a diagnostic message is printed. Then, the program exitsunless theOn a partial or empty read a diagnostic message is printed. Then, the program@@ -11,7 +11,7 @@ dj \(en disk jockey.SH SYNOPSISIf you update the manpage, update the date to the date when you updated it.
@@ -81,4 +75,2 @@DIAGNOSTICS section. Each invocation increments the debug level of theprogram..IP \fB-H\fPPrints diagnostics messages in a human-readable manner as described in theThis isn’t a change made here but this should say “diagnostic message” because it is an adjective and because it would be in line with the rest of the manpage.
WIP: dj(1): Refactor source a bit, remove -adqto WIP: dj(1): Refactor source a bit, remove -AdqJust making sure you’ve implemented #113 before this is merged in.
Pull request closed