From e1c4a2f5e927a5c7c1b843cb833e6bc0b8772749 Mon Sep 17 00:00:00 2001
From: Pavel Fedarovich
Date: Mon, 11 Feb 2019 14:57:23 +0300
Subject: [PATCH] Added short forms to all "torrent add file" and "torrent add
url" option
---
.../Commands/TorrentCommand.Add.cs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/QBittorrent.CommandLineInterface/Commands/TorrentCommand.Add.cs b/src/QBittorrent.CommandLineInterface/Commands/TorrentCommand.Add.cs
index 40dd785..50ce0ef 100644
--- a/src/QBittorrent.CommandLineInterface/Commands/TorrentCommand.Add.cs
+++ b/src/QBittorrent.CommandLineInterface/Commands/TorrentCommand.Add.cs
@@ -23,7 +23,7 @@ public abstract class Base : AuthenticatedCommandBase
[Option("-f|--folder ", "Download folder.", CommandOptionType.SingleValue)]
public string Folder { get; set; }
- [Option("--cookie ", "Cookie sent to download the .torrent file.", CommandOptionType.SingleValue)]
+ [Option("-C|--cookie ", "Cookie sent to download the .torrent file.", CommandOptionType.SingleValue)]
public string Cookie { get; set; }
[Option("-c|--category ", "Category for the torrent.", CommandOptionType.SingleValue)]
@@ -32,10 +32,10 @@ public abstract class Base : AuthenticatedCommandBase
[Option("-p|--paused", "Add torrents in the paused state.", CommandOptionType.NoValue)]
public bool Paused { get; set; }
- [Option("--no-check", "Skip hash checking.", CommandOptionType.NoValue)]
+ [Option("-n|--no-check", "Skip hash checking.", CommandOptionType.NoValue)]
public bool SkipChecking { get; set; }
- [Option("--create-root-folder ", "Create root folder (true/false).", CommandOptionType.SingleValue)]
+ [Option("-R|--create-root-folder ", "Create root folder (true/false).", CommandOptionType.SingleValue)]
public bool? CreateRootFolder { get; set; }
[Option("-r|--rename ", "Rename torrent", CommandOptionType.SingleValue)]
@@ -50,7 +50,7 @@ public abstract class Base : AuthenticatedCommandBase
[Option("-s|--sequential", "Enable sequential download.", CommandOptionType.NoValue)]
public bool SequentialDownload { get; set; }
- [Option("--first-last-prio", "Prioritize download of the first and the last pieces.", CommandOptionType.SingleValue)]
+ [Option("-F|--first-last-prio", "Prioritize download of the first and the last pieces.", CommandOptionType.SingleValue)]
public bool FirstLastPiecePrioritized { get; set; }
[Option("-a|--automatic-torrent-management ", "Enable/disables automatic torrent management. Requires qBittorrent 4.1.5 or later.", CommandOptionType.SingleValue)]