0
@@ -161,7 +161,30 @@ Main {
0
+ mixin :standard_options
0
+ mixin :revision_or_commit
0
+ argument("directory") { optional }
0
+ if params["revision"].given? && params["commit"].given? then
0
+ raise ArgumentError, "Only one of --revision or --commit can be given. Received both."
0
+ cmd = Piston::Commands::Update.new(:lock => params["lock"].value,
0
+ :verbose => params["verbose"].value,
0
+ :quiet => params["quiet"].value,
0
+ :force => params["force"].value,
0
+ :dry_run => params["dry-run"].value)
0
+ cmd.run(params["director"].value, target_revision)
Comments
No one has commented yet.