txa-m 2.0.3__tar.gz → 2.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: txa-m
3
- Version: 2.0.3
3
+ Version: 2.0.4
4
4
  Summary: A modern, high-speed downloader for MediaFire files and folders
5
5
  Author: TXA
6
6
  Classifier: Programming Language :: Python :: 3
@@ -115,5 +115,5 @@ txa-m --u
115
115
 
116
116
  ## 📜 Copyright
117
117
 
118
- Copyright © TXA.
118
+ Copyright © 2026 TXA.
119
119
  _This tool is for educational purposes only._
@@ -91,5 +91,5 @@ txa-m --u
91
91
 
92
92
  ## 📜 Copyright
93
93
 
94
- Copyright © TXA.
94
+ Copyright © 2026 TXA.
95
95
  _This tool is for educational purposes only._
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="txa-m",
5
- version="2.0.3",
5
+ version="2.0.4",
6
6
  packages=find_packages(),
7
7
  install_requires=[
8
8
  "requests",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: txa-m
3
- Version: 2.0.3
3
+ Version: 2.0.4
4
4
  Summary: A modern, high-speed downloader for MediaFire files and folders
5
5
  Author: TXA
6
6
  Classifier: Programming Language :: Python :: 3
@@ -115,5 +115,5 @@ txa-m --u
115
115
 
116
116
  ## 📜 Copyright
117
117
 
118
- Copyright © TXA.
118
+ Copyright © 2026 TXA.
119
119
  _This tool is for educational purposes only._
@@ -41,7 +41,7 @@ from rich.theme import Theme
41
41
  from rich import box
42
42
 
43
43
  # --- Configuration ---
44
- APP_VERSION = "2.0.3"
44
+ APP_VERSION = "2.0.4"
45
45
 
46
46
  # Default ignore lists
47
47
  IGNORE_EXTENSIONS = {".pyc", ".pyo", ".pyd", ".DS_Store", "Thumbs.db"}
@@ -284,6 +284,13 @@ def perform_update():
284
284
  class RichArgumentParser(ArgumentParser):
285
285
  def error(self, message):
286
286
  print_header()
287
+
288
+ # Translate common argparse messages
289
+ if "unrecognized arguments" in message:
290
+ message = message.replace("unrecognized arguments", T.get('err_unrecognized_args', "Unrecognized arguments"))
291
+ elif "the following arguments are required" in message:
292
+ message = message.replace("the following arguments are required", T.get('err_missed_args', "Missing required arguments"))
293
+
287
294
  console.print(Panel(
288
295
  f"{message}\n\n[dim]Run with --help for usage.[/dim]",
289
296
  title="[bold red]ARGUMENT ERROR[/bold red]",
@@ -35,7 +35,9 @@
35
35
  "update_available": "New version available!",
36
36
  "no_update": "You are using the latest version.",
37
37
  "updating": "Updating to version",
38
- "update_success": "Update successful! Please restart the tool."
38
+ "update_success": "Update successful! Please restart the tool.",
39
+ "err_unrecognized_args": "Unrecognized arguments",
40
+ "err_missed_args": "the following arguments are required"
39
41
  },
40
42
  "vi": {
41
43
  "banner_desc": "Trình tải xuống tốc độ cao, hiện đại cho MediaFire",
@@ -73,6 +75,8 @@
73
75
  "update_available": "Có phiên bản mới!",
74
76
  "no_update": "Bạn đang sử dụng phiên bản mới nhất.",
75
77
  "updating": "Đang cập nhật lên phiên bản",
76
- "update_success": "Cập nhật thành công! Vui lòng khởi động lại công cụ."
78
+ "update_success": "Cập nhật thành công! Vui lòng khởi động lại công cụ.",
79
+ "err_unrecognized_args": "Tham số không được nhận diện",
80
+ "err_missed_args": "các tham số sau là bắt buộc"
77
81
  }
78
82
  }
File without changes
File without changes
File without changes
File without changes