tasket / wyng-backup

Fast backups for logical volumes & disk images
GNU General Public License v3.0
251 stars 16 forks source link

Bad argument parsing #182

Closed seven-beep closed 7 months ago

seven-beep commented 7 months ago

Hello,

After initializing an archive, if I do as instructed in the README :

# wyng send --dest=qubes://disp9061/home/user/qubes.backup --local=qubes_dom0/vm-pool vm-lorgnette-dvm-private
usage: wyng [-h] [--unattended] [--authmin AUTHMIN] [--all-before] [--all]
            [--session SESSION] [--tag TAG] [--keep KEEP] [--volex VOLEX]
            [--autoprune AUTOPRUNE] [--apdays APDAYS] [--save-to SAVETO] [--sparse]
            [--sparse-write] [--use-snapshot] [--import-other-from IMPORT_OTHER_FROM]
            [--remap] [--dest DEST] [--local LOCAL] [--encrypt ENCRYPT]
            [--compression COMPRESSION] [--hashtype HASHTYPE] [--chunk-factor CHFACTOR]
            [--passcmd PASSCMD] [--meta-dir METADIR] [--json] [--force] [--clean]
            [--maxsync] [--upgrade-format] [--debug] [--quiet] [--verbose] [--dedup]
            [--volume-desc VOLDESC]
            {monitor,version,list,receive,verify,diff,arch-check,arch-init,add,send,prune,delete,rename,arch-delete,arch-deduplicate}
            [volumes ...]
wyng: error: unrecognized arguments: vm-lorgnette-dvm-private

Apparently the command expect the argument to be the first after the verb 'send' and this break backward compatibility with previous versions.

tasket commented 7 months ago

This is going to be how it works until the arg parsing is refactored. See issue #4.

The '--' options can be placed either just after 'wyng' or at the end of the command line (or both). IOW, the wyng command and the volume list (if any) can't be separated.