Commit Graph

13 Commits

Author SHA1 Message Date
ac981508f7 Fix incorrect handling of flags
Previously, arguments were examined by a for loop, but this loop is not
affected by the `shift` commands executed inside of it.

Because the loop always advances one argument further on each iteration,
this bug goes unnoticed with the `--portrait` option (`shift` is called
once, which matches the behavior of the loop). However, handling of the
`--destination` argument is broken because of that (`shift` is called
twice but the loop only advances one argument).

This commit replaces the `for` loop by a `while` loop which always
examines the next argument and properly takes `shift`s into account.
This is based on the following SO answer:
<https://stackoverflow.com/a/7069755/3452708>
2020-04-02 16:17:21 +02:00
382944058e Add parameters to README, ssh timeout to 1s
Changed the README to reflect the command line options added with
bcf62e3. Also incorporates the SSH timeout of 1 second added by the
initial PR (#10).

Co-authored-by: Aaron David Schneider <aaron.david.schneider@gmail.com>
2020-04-02 14:20:48 +02:00
8465062425 change name to -d 2020-04-02 10:23:58 +02:00
1f63880a8e add command-line options 2020-04-01 16:51:01 +02:00
0adb3e4fdc Add -p flag for portrait 2020-03-31 15:25:30 +02:00
8ca1557e7b Replace which zstd by which lz4 (forgotten)
Fixes #5. Thanks @chkgk!
2020-03-18 16:19:12 +01:00
9f6ba5dd1d Use lz4 instead of zstd, add prebuilt static library 2020-03-17 23:44:55 +01:00
d0c5ffe9e1 Search for zstd in home directory
This is possibly a solution for #2.
2020-03-12 08:29:19 +01:00
eb034a63bd Better documentation 2020-03-12 00:17:13 +01:00
b638810082 Use the default SSH host location, also test if zstd is present on host 2020-03-02 09:34:16 +01:00
98709fc0c4 Fix landscape_param 2020-02-24 09:30:12 +01:00
7558b0935a Graceful fallback to gzip if zstd is not present 2020-02-12 14:47:52 +01:00
b52f9afc28 Create reStream.sh 2020-02-12 13:13:14 +01:00