Skip to content

Commit

Permalink
Fixes commandlines params
Browse files Browse the repository at this point in the history
  • Loading branch information
catusf authored Dec 2, 2024
1 parent f7dd14d commit 769fe2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ jobs:
- name: Zip all artifacts for release
run: |
ls -R -l $OUTPUT_DIR &&
python ./bin/dict_summary.py --dict_dir=$INPUT_DIR --output_dir=$OUTPUT_DIR
# python ./bin/dict_summary.py --dict_dir=$INPUT_DIR --output_dir=$OUTPUT_DIR
python ./bin/dict_summary.py --dict-dir=$INPUT_DIR --output-dir=$OUTPUT_DIR
- name: Get Current Timestamp
id: timestamp
run: echo "TIMESTAMP=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
Expand Down
4 changes: 2 additions & 2 deletions bin/dict_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ def main():
"""Main function to parse arguments and run the processes."""
# Parse command-line arguments
parser = argparse.ArgumentParser(description="Generate a dictionary summary.")
parser.add_argument('dict_dir', type=str, nargs='?', default='dict',
parser.add_argument('--dict-dir', type=str, default='dict',
help="The directory containing the dictionary files (default is 'dict').")
parser.add_argument('output_dir', type=str, nargs='?', default='output',
parser.add_argument('--output-dir', type=str, default='output',
help="The directory containing the output files (default is 'output').")
args = parser.parse_args()

Expand Down

0 comments on commit 769fe2f

Please sign in to comment.