lib/chef/knife/download_essentials.rb in knife-essentials-1.0.0.beta1 vs lib/chef/knife/download_essentials.rb in knife-essentials-1.0.0.beta2
- old
+ new
@@ -33,9 +33,15 @@
:short => '-n',
:boolean => true,
:default => false,
:description => "Don't take action, only print what would happen"
+ option :diff,
+ :long => '--[no-]diff',
+ :boolean => true,
+ :default => true,
+ :description => 'Turn off to avoid uploading existing files; only new (and possibly deleted) files with --no-diff'
+
def run
if name_args.length == 0
show_usage
ui.fatal("Must specify at least one argument. If you want to download everything in this directory, type \"knife download .\"")
exit 1