GetCommand constructor
GetCommand()
Implementation
GetCommand() {
argParser.addOption("out", abbr: "o", help: "Output file path with filename", valueHelp: 'path');
argParser.addOption(
"user-agent",
abbr: "u",
help: "Identification of the software accessing the internet",
valueHelp: "<string>",
);
argParser.addFlag('no-user-agent', help: 'Disable user agent', negatable: false);
argParser.addOption(
'name',
abbr: 'n',
help:
'Define the name of the downloaded file without defining the path'
' (only works without --out)',
);
argParser.addFlag('exec', abbr: 'x', help: 'Make executable the downloaded file (unix only)', negatable: false);
argParser.addFlag('bin', abbr: 'b', help: 'Install to bin folder of the system', negatable: false);
// no progress bar
argParser.addFlag('no-progress', help: 'Disable progress bar', negatable: false);
argParser.addOption('md5', help: 'Check MD5 hash', valueHelp: 'hash');
argParser.addOption('sha1', help: 'Check SHA1 hash', valueHelp: 'hash');
argParser.addOption('sha256', help: 'Check SHA256 hash', valueHelp: 'hash');
argParser.addOption('sha512', help: 'Check SHA512 hash', valueHelp: 'hash');
argParser.addOption('sha224', help: 'Check SHA224 hash', valueHelp: 'hash');
argParser.addOption('sha384', help: 'Check SHA384 hash', valueHelp: 'hash');
argParser.addOption('sha512-224', help: 'Check SHA512/224 hash', valueHelp: 'hash');
argParser.addOption('sha512-256', help: 'Check SHA512/256 hash', valueHelp: 'hash');
}