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
parser_clean.add_argument('subdir', nargs='?', type=str,help="subdirectory in homedir on EV3; if specified only that directory gets cleaned instead of the whole homedir. Must be relative path.")
762
+
parser_clean.add_argument('subdir', nargs='?', type=str,help="subdirectory in homedir on EV3; if specified only that directory gets cleaned instead of the whole homedir. Must be relative path.\nHidden files/dirs starting with '.' in homedir on EV3 are preserved by excluding them from cleanup.")
743
763
parser_clean.set_defaults(func=cleanup)
744
764
# create the parser for the "mirror" command
765
+
# note: help message is shown for general help "ev3dev -h", long description for specific help "ev3dev mirror -h"
766
+
parser_mirror_help="Mirror sourcedir into homedir[/subdir] on EV3. Subdirs within sourcedir are recursively mirrored."
745
767
parser_mirror_description= \
746
-
'mirror sourcedir into homedir[/subdir] on EV3.\nSubdirs within sourcedir are recursively mirrored.\nFiles/dirs within homedir[/subdir] but not in sourcedir are removed.\n\n'\
768
+
"Mirror sourcedir into homedir[/subdir] on EV3.\nSubdirs within sourcedir are recursively mirrored.\n"\
769
+
+"Files/dirs within homedir[/subdir] but not in sourcedir are removed.\n"\
770
+
+"Hidden files/dirs starting with '.' in homedir on EV3 are ALWAYS PRESERVED by excluding mirroring\n"\
771
+
+"of hidden files at the root of the sourcedir into the homedir.\n"\
772
+
+"Directories with the name '__pycache__' are ALWAYS excluded from mirroring.\n"\
773
+
+"\n"\
747
774
+"When uploading a script then the executable is set and a shebang added if not yet there.\n" \
748
-
+"If using mirror on linux/macos then make sure main script is executable and has shebang line,\n" \
749
-
+"or otherwise upload main script separately afterwards.\n" \
750
-
+"If using mirror on windows then upload main script separately afterwards. Note that on windows\n" \
775
+
+"If using mirror on linux/macos then make sure the main script is executable and has a shebang line,\n" \
776
+
+"or otherwise upload the main script separately afterwards.\n" \
777
+
+"If using mirror on windows then upload the main script separately afterwards. Note that on windows\n" \
parser_mirror.add_argument('-a', '--all',action='store_true',help="do not exclude hidden files/dirs starting with '.' from mirroring. Hidden files/dirs can only be mirrored within subdirectories. In the root of the home directory of the EV3 they are ALWAYS excluded from mirroring to protect the user's configuration files in his home directory.")
753
781
parser_mirror.add_argument('sourcedir', type=str,help="source directory which gets mirrored.")
754
782
parser_mirror.add_argument('subdir', nargs='?', type=str,help="subdirectory in homedir on EV3 where it gets mirrored instead of the homedir. Must be relative path.")
0 commit comments