You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rootCmd.Flags().BoolS("P", "P", false, "do not traverse any symbolic links (default)")
25
26
rootCmd.Flags().BoolP("changes", "c", false, "like verbose but report only when a change is made")
26
27
rootCmd.Flags().Bool("dereference", false, "affect the referent of each symbolic link (this is the default), rather than the symbolic link itself")
28
+
rootCmd.Flags().String("from", "", "change the ownership of each file only if its current owner and/or group match those specified here")
27
29
rootCmd.Flags().Bool("help", false, "display this help and exit")
28
30
rootCmd.Flags().BoolP("no-dereference", "h", false, "affect symbolic links instead of any referenced file (useful only on systems that can change the ownership of a symlink)")
29
31
rootCmd.Flags().Bool("no-preserve-root", false, "do not treat '/' specially (the default)")
@@ -36,6 +38,7 @@ func init() {
36
38
rootCmd.Flags().Bool("version", false, "output version information and exit")
rootCmd.Flags().String("context", "", "like -Z, or if CTX is specified then set the SELinux or SMACK security context to CTX")
30
31
rootCmd.Flags().Bool("copy-contents", false, "copy contents of special files when recursive")
31
32
rootCmd.Flags().BoolS("d", "d", false, "same as --no-dereference --preserve=links")
33
+
rootCmd.Flags().Bool("debug", false, "explain how a file is copied")
32
34
rootCmd.Flags().BoolP("dereference", "L", false, "always follow symbolic links in SOURCE")
33
35
rootCmd.Flags().BoolP("force", "f", false, "if an existing destination file cannot be opened, remove it and try again (this option is ignored when the -n option is also used)")
34
36
rootCmd.Flags().Bool("help", false, "display this help and exit")
35
37
rootCmd.Flags().BoolP("interactive", "i", false, "prompt before overwrite (overrides a previous -n option)")
38
+
rootCmd.Flags().Bool("keep-directory-symlink", false, "follow existing symlinks to directories")
36
39
rootCmd.Flags().BoolP("link", "l", false, "hard link files instead of copying")
37
-
rootCmd.Flags().BoolP("no-clobber", "n", false, "do not overwrite an existing file (overrides a previous -i option)")
rootCmd.Flags().Bool("remove-destination", false, "remove each existing destination file before attempting to open it (contrast with --force)")
@@ -50,17 +53,25 @@ func init() {
50
53
rootCmd.Flags().StringP("suffix", "S", "", "override the usual backup suffix")
51
54
rootCmd.Flags().BoolP("symbolic-link", "s", false, "make symbolic links instead of copying")
52
55
rootCmd.Flags().StringP("target-directory", "t", "", "copy all SOURCE arguments into DIRECTORY")
53
-
rootCmd.Flags().BoolP("update", "u", false, "copy only when the SOURCE file is newer than the destination file or when the destination file is missing")
56
+
rootCmd.Flags().BoolS("u", "u", false, "equivalent to --update[=older]")
57
+
rootCmd.Flags().String("update", "", "control which existing files are updated")
54
58
rootCmd.Flags().BoolP("verbose", "v", false, "explain what is being done")
55
59
rootCmd.Flags().Bool("version", false, "output version information and exit")
0 commit comments