Add support for '-h' (help). https://github.com/PaulStoffregen/teensy_loader_cli/pull/26 --- teensy_loader_cli.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/teensy_loader_cli.c b/teensy_loader_cli.c index d4a6cc5..0a06209 100644 --- a/teensy_loader_cli.c +++ b/teensy_loader_cli.c @@ -37,7 +37,8 @@ void usage(const char *err) { if(err != NULL) fprintf(stderr, "%s\n\n", err); fprintf(stderr, - "Usage: teensy_loader_cli --mcu= [-w] [-h] [-n] [-b] [-v] \n" + "Usage: teensy_loader_cli --mcu= [-h] [-w] [-n] [-b] [-v] \n" + "\t-h : Print this help message\n" "\t-w : Wait for device to appear\n" "\t-r : Use hard reboot if device not online\n" "\t-s : Use soft reboot if device not online (Teensy3.x only)\n" @@ -1081,6 +1082,7 @@ void parse_flag(char *arg) int i; for(i=1; arg[i]; i++) { switch(arg[i]) { + case 'h': usage(NULL); break; case 'w': wait_for_device_to_appear = 1; break; case 'r': hard_reboot_device = 1; break; case 's': soft_reboot_device = 1; break; -- 2.7.4 uix/'>summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2019-09-25build: initrd: Fix "write-cpio-archive" return value....* gnu/build/linux-initrd.scm (write-cpio-archive): Really return OUTPUT on success, even when compression is disabled. Maxim Cournoyer
2018-11-21linux-initrd: 'expression->initrd' returns the complete file name....Previously 'expression->initrd' would return the directory that contains the 'initrd' file; now it returns the complete file name for that file. * gnu/system/linux-initrd.scm (expression->initrd)[builder]: Change output file name to "initrd.cpio.gz". Tail-call 'file-append' to return the complete file name. * gnu/system.scm (operating-system-initrd-file): Remove 'file-append' call. * gnu/build/linux-initrd.scm (write-cpio-archive): Check whether OUTPUT already has the ".gz" suffix; rename if before invoking GZIP if it does, and otherwise after. * gnu/system/vm.scm (expression->derivation-in-linux-vm)[builder]: Do not append "/initrd" to #$initrd. Ludovic Courtès
2018-11-07linux-initrd: Make sure 'build-initrd' can delete files....Fixes <https://bugs.gnu.org/33297>. Reported by Mark H Weaver <mhw@netris.org>. This fixes a regression introduced in 72dc64f8f720268930eed448abfc15d2a0eca3cf, which made files read-only. * gnu/build/linux-initrd.scm (build-initrd): Call 'make-file-writable' on all the files under contents/. Ludovic Courtès