curl / wcurl

a simple wrapper around curl to easily download files
https://curl.se/wcurl
Other
246 stars 9 forks source link

Support -V and --version flags #5

Closed ryandesign closed 3 months ago

ryandesign commented 3 months ago

With wcurl 2024-07-02:

% wcurl --version
wcurl: unrecognized option `--version'
% wcurl -V    
wcurl: invalid option -- V

With wget 1.24.5:

% wget --version
GNU Wget 1.24.5 built on darwin21.6.0.

-cares +digest +gpgme +https +ipv6 +iri +large-file +metalink +nls 
+ntlm +opie +psl +ssl/gnutls 

Wgetrc: 
    /opt/local/etc/wgetrc (system)
Locale: 
    /opt/local/share/locale 
Compile: 
    /usr/bin/clang -DHAVE_CONFIG_H 
    -DSYSTEM_WGETRC="/opt/local/etc/wgetrc" 
    -DLOCALEDIR="/opt/local/share/locale" -I. -I../lib -I../lib 
    -I/opt/local/include 
    -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk 
    -DNDEBUG -pipe -Os -std=c99 
    -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk 
    -arch x86_64 
Link: 
    /usr/bin/clang -DNDEBUG -pipe -Os -std=c99 
    -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk 
    -arch x86_64 -L/opt/local/lib -Wl,-headerpad_max_install_names 
    -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk 
    -arch x86_64 -L/opt/local/lib -lproxy -L/opt/local/lib -lmetalink 
    -L/opt/local/lib -lpcre2-8 -L/opt/local/lib -lidn2 -L/opt/local/lib 
    -lnettle /opt/local/lib/libgnutls.dylib -L/opt/local/lib -lz 
    -L/opt/local/lib -lpsl -L/opt/local/lib -lgpgme ../lib/libgnu.a 
    /opt/local/lib/libiconv.dylib /opt/local/lib/libintl.dylib 
    -Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices 
    /opt/local/lib/libunistring.dylib 

Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.

and wget -V outputs the same.

samueloph commented 3 months ago

Agreed, I should be able to do this either tomorrow or Saturday (we have a small rewrite of the argument parsing coming).

Thank you for raising the issue.