/added | /modified | /deleted options for online command
[tfs.git] / tools / tf / Options.cs
blobf1bd839700848060f291a8da70c53dabcd66a4c2
1 //
2 // options.cs
3 //
4 // Authors:
5 // Joel Reed (joelwreed@gmail.com)
6 //
8 //
9 // Permission is hereby granted, free of charge, to any person obtaining
10 // a copy of this software and associated documentation files (the
11 // "Software"), to deal in the Software without restriction, including
12 // without limitation the rights to use, copy, modify, merge, publish,
13 // distribute, sublicense, and/or sell copies of the Software, and to
14 // permit persons to whom the Software is furnished to do so, subject to
15 // the following conditions:
16 //
17 // The above copyright notice and this permission notice shall be
18 // included in all copies or substantial portions of the Software.
19 //
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 using System;
30 using Mono.GetOptions;
32 class TfOptions : Options {
34 public string Domain;
35 public string Username;
37 [Option("Look for added files.", "", "added")]
38 public bool Added = false;
40 [Option("Get all files, not just those out of date", "", "all")]
41 public bool All = false;
43 [Option("Overwrite files that are writable", "", "overwrite")]
44 public bool Overwrite = false;
46 [Option("Specify a comment", "C", "comment")]
47 public string Comment;
49 [Option("Computer name", "M", "computer")]
50 public string Computer;
52 [Option("Look for deleted files.", "D", "deleted")]
53 public bool Deleted = false;
55 [Option("Force operation", "P", "force")]
56 public bool Force = false;
58 [Option("Folders", null, "folders")]
59 public bool Folders;
61 [Option("Format", "F", "format")]
62 public string Format = "";
64 [Option("Lock", "K", "lock")]
65 public bool Lock = false;
67 [Option("Login name", "Y", "login")]
68 public string Login;
70 [Option("Look for modified files.", "", "modified")]
71 public bool Modified = false;
73 [Option("Newname", "N", "newname")]
74 public string Newname;
76 [Option("Suppress all errors or comments", "I", "noprompt")]
77 public bool Noprompt;
79 [Option("Show other/unknown files", "", "others")]
80 public bool Others = false;
82 [Option("Show out of date files (newer version on server)", "", "old")]
83 public bool Old = false;
85 [Option("Show output as a patch", "p", "patch")]
86 public bool Patch = false;
88 [Option("Preview", "", "preview")]
89 public bool Preview = false;
91 [Option("Owner name", "O", "owner")]
92 public string Owner;
94 [Option("Recursive", "R", "recursive")]
95 public bool Recursive = false;
97 [Option("Server name.", "S", "server")]
98 public string Server;
100 [Option("Slotmode", "X", "slotmode")]
101 public string Slotmode;
103 [Option("Stop After", "", "stopafter")]
104 public int StopAfter = 256;
106 [Option("Template", "T", "template")]
107 public string Template;
109 [Option("Unmap", "", "unmap")]
110 public bool Unmap;
112 [Option("User name", "U", "user")]
113 public string User;
115 [Option("Validate the checkin before committing", "", "validate")]
116 public bool Validate;
118 [Option("Version", "V", "version")]
119 public string Version;
121 [Option("Workspace name", "W", "workspace")]
122 public string Workspace;
124 [KillOption]
125 public override WhatToDoNext DoAbout() { return WhatToDoNext.GoAhead; }