Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 77b1a00

Browse files
authoredMar 13, 2025
Update change_dump_date.py
added a usage to the --help
1 parent 7395075 commit 77b1a00

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/umfile_utils/change_dump_date.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import os
22
import mule
33
import argparse
4+
function_description = "It allows the user to change the timestamps (metadata) of a restart dump file,\
5+
without modifying its data content. Date Example: change_dump_date input_file_path -date 20250122\
6+
YMD Example: change_dump_date input_file_path -y 2025 -m 1 -d 22"
47

58
def validate_year_value(value):
69
"""
@@ -83,7 +86,7 @@ def parse_args():
8386
argparse.Namespace
8487
Argparse namespace containing the parsed command line arguments.
8588
"""
86-
parser = argparse.ArgumentParser(description="Modify UM dump file initial and valid dates")
89+
parser = argparse.ArgumentParser(description=function_description)
8790
parser.add_argument('ifile', metavar="INPUT_PATH", help='Path to the input file.')
8891
parser.add_argument('-o', '--output', dest='output_path', metavar="OUTPUT_PATH",
8992
help='Path to the output file. If omitted, the default output file is created by appending "_newdate" to the input path.')

0 commit comments

Comments
 (0)
Please sign in to comment.