Skip to content

Commit

Permalink
Update help output
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAplin committed Sep 10, 2024
1 parent ca67fe9 commit 31c427a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ options:
user_session cookie value (string or filepath)
-n, --netrc use .netrc authentication
-q, --quiet suppress output to console
-l, --log log output to file
-l [PATH], --log [PATH]
log output to file
-v, --version show program's version number and exit
download options:
Expand Down
3 changes: 2 additions & 1 deletion README_JA.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ options:
user_session クッキー値 (文字列またはファイルパス)
-n, --netrc .netrcを認証に利用
-q, --quiet コンソールに出力しない
-l, --log ファイルにログ出力
-l [PATH], --log [PATH]
ファイルにログ出力
-v, --version プログラムのバージョン情報を表示
download options:
Expand Down
2 changes: 1 addition & 1 deletion nndownload/nndownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
cmdl_parser.add_argument("--session-cookie", dest="session_cookie", metavar="COOKIE", help="user_session cookie value (string or filepath)")
cmdl_parser.add_argument("-n", "--netrc", action="store_true", dest="netrc", help="use .netrc authentication")
cmdl_parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", help="suppress output to console")
cmdl_parser.add_argument("-l", "--log", nargs="?", const=f"[{MODULE_NAME}] {time.strftime('%Y-%m-%d')}.log", dest="log", metavar="[PATH]", help="log output to file")
cmdl_parser.add_argument("-l", "--log", nargs="?", const=f"[{MODULE_NAME}] {time.strftime('%Y-%m-%d')}.log", dest="log", metavar="PATH", help="log output to file")
cmdl_parser.add_argument("-v", "--version", action="version", version=CMDL_VERSION)
cmdl_parser.add_argument("input", action="store", nargs="*", help="URLs or files")

Expand Down

0 comments on commit 31c427a

Please sign in to comment.