diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-07-08 23:18:06 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-07-08 23:18:06 -0600 |
commit | c2cc86d9768370ce679e400478884a15af446baa (patch) | |
tree | 007814413295b1b050a6ac9ed2e6203d0cc8e940 /src/librefetch | |
parent | ea697dc10fe054cc81d1c82db62228bb7708d7a3 (diff) |
librefetch: print usage errors to stderr
Diffstat (limited to 'src/librefetch')
-rwxr-xr-x | src/librefetch/librefetch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch index e3b9c65..ab4f21a 100755 --- a/src/librefetch/librefetch +++ b/src/librefetch/librefetch @@ -93,7 +93,7 @@ main() { if [[ $mode =~ checksums ]]; then if [[ ${#extra_opts[@]} != 0 ]]; then - print "%s: found extra non-flag arguments: %s" "$cmd" "${extra_opts[*]}" + print "%s: found extra non-flag arguments: %s" "$cmd" "${extra_opts[*]}" >> /dev/stderr usage >> /dev/stderr return 1 fi @@ -108,7 +108,7 @@ main() { ######################################################################## if [[ ${#extra_opts[@]} != 2 ]]; then - print "%s: %d non-flag arguments found, expected 2: %s" "$cmd" ${#extra_opts[@]} + print "%s: %d non-flag arguments found, expected 2: %s" "$cmd" ${#extra_opts[@]} >> /dev/stderr usage >> /dev/stderr return 1 fi |