Parse commandline arguments.
(parser)
| 98 | # Routines |
| 99 | |
| 100 | def parse_args(parser): |
| 101 | """ |
| 102 | Parse commandline arguments. |
| 103 | """ |
| 104 | parser.add_argument('-d', '--dir', type=str, required=True, help='Root directory to start the scan') |
| 105 | parser.add_argument('-f','--force-update', action='store_true', help='Force the header writes for all files') |
| 106 | parser.add_argument('--dry-run', action='store_true', help='Just perform a dry-run') |
| 107 | parser.add_argument('--max-depth', type=int,default=100, help='Maximum depth to recurse while scanning files.') |
| 108 | return parser |
| 109 | |
| 110 | def update(filename, args): |
| 111 | """ |