Skip to content

Commit

Permalink
Add help text for /p command line option, issue #763.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Mar 4, 2024
1 parent ba2a0d7 commit a40501f
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 9 deletions.
3 changes: 2 additions & 1 deletion locale/de/Notepad2.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,7 @@ file\tMust be the last argument, no quoted spaces by default.\n\
/l[o|p]\tAuto-reload modified files.\n\
/q\tForce creation of new files without prompt.\n\
/ro\tOpen file in read only mode.\n\
/p\tPrint file with default printer and options.\n\
/s name\tSelect specified syntax scheme.\n\
/d\tSelect Text File scheme.\n\
/h\tSelect Web Source Code scheme.\n\
Expand All @@ -1856,7 +1857,7 @@ file\tMust be the last argument, no quoted spaces by default.\n\
/b\tOpen new paste board to collect clipboard entries.\n\
/n\tAlways open a new window (/ns single file instance).\n\
/r\tReuse window (/rs single file instance).\n\
/p\tSet window position and size (/p0, /ps, /pf,l,t,r,b,m).\n\
/p<flag>\tSet window position and size (/p0, /ps, /pf,l,t,r,b,m).\n\
/t title\tSet window title.\n\
/i\tStart as tray icon.\n\
/o\tKeep window on top.\n\
Expand Down
3 changes: 2 additions & 1 deletion locale/fr-FR/Notepad2.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,7 @@ fichier\tDoit être le dernier argument, pas de doubles guillemets pour les espa
/l[o|p]\tRecharge automatiquement les fichiers modifiés.\n\
/q\tForce la création de nouveau fichier sans demander.\n\
/ro\tOuvre un fichier en mode lecture seule.\n\
/p\tPrint file with default printer and options.\n\
/s nom\tSélectionne le thème spécifié.\n\
/d\tSélectionne thème dans le fichier spécifié.\n\
/h\tSélectionne le thème pour le code de type Web.\n\
Expand All @@ -1856,7 +1857,7 @@ fichier\tDoit être le dernier argument, pas de doubles guillemets pour les espa
/b\tOpen new paste board to collect clipboard entries.\n\
/n\tToujours ouvrir une nouvelle fenêtre (/ns une seule instance de fichier permise).\n\
/r\tRéutiliser la fenêtre actuelle(/rs une seule instance de fichier permise).\n\
/p\tRégler la position et la taille de la fenêtre (/p0, /ps, /pf,l,t,r,b,m).\n\
/p<flag>\tRégler la position et la taille de la fenêtre (/p0, /ps, /pf,l,t,r,b,m).\n\
/t title\tRégler le titre de la fenêtre.\n\
/i\tDémarrer en mode réduit dans la barre des tâches.\n\
/o\tGarder la fenêtre en avant des autres applications.\n\
Expand Down
3 changes: 2 additions & 1 deletion locale/it/Notepad2.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,7 @@ file\tPer impostazione predefinita deve essere l'ultimo\n\targomento, senza spaz
/l[o|p]\tCarica automaticamente i file modificati.\n\
/q\tForza la creazione di nuovi file senza richieste.\n\
/ro\tAprire un file in modalità di sola lettura.\n\
/p\tPrint file with default printer and options.\n\
/s nome\tSeleziona lo schema sintattico specificato.\n\
/d\tSeleziona schema File di testo.\n\
/h\tSeleziona schema Codice sorgente Web.\n\
Expand All @@ -1856,7 +1857,7 @@ file\tPer impostazione predefinita deve essere l'ultimo\n\targomento, senza spaz
/b\tAprire un nuovo pannello di incollaggio per\n\traccogliere le voci degli appunti.\n\
/n\tAprire sempre una nuova finestra (/ns istanza di un\n\tsingolo file).\n\
/r\tRiutilizza la finestra (/rs istanza di file singolo).\n\
/p\tImposta la posizione e la dimensione della finestra\n\t(/p0, /ps, /pf,l,t,r,b,m).\n\
/p<flag>\tImposta la posizione e la dimensione della finestra\n\t(/p0, /ps, /pf,l,t,r,b,m).\n\
/t titolo\tImposta il titolo della finestra..\n\
/i\tAvvia come icona della barra delle applicazioni.\n\
/o\tMantiene la finestra sempre in cima.\n\
Expand Down
3 changes: 2 additions & 1 deletion locale/ja/Notepad2.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,7 @@ BEGIN
/m 文字列\t文字列一致 (/m- 最後, /mr 正規表現, /mb バックスラッシュ変換)\n\
/l[o|p]\tファイル変更時に自動で最新内容に再読み込み\n\
/q\tファイルがない場合、問い合わせずファイル作成\n\
/p\tPrint file with default printer and options.\n\
/ro\tファイルを読み取り専用モードで開く\n\
/s 設定名\t配色設定を指定 [/s ext]\n\
/d\tテキストファイルの配色を指定\n\
Expand All @@ -1857,7 +1858,7 @@ BEGIN
/b\tクリップボード履歴表示モードで開く\n\
/n\t新規ウィンドウで開く (/ns ファイルは単一のインスタンス)\n\
/r\tウインドウを再利用 (/rs 同じく単一のインスタンス\n\
/p\tウィンドウの位置とサイズを指定 (/p0, /ps, /pf,l,t,r,b,m).\n\
/p<flag>\tウィンドウの位置とサイズを指定 (/p0, /ps, /pf,l,t,r,b,m).\n\
/t タイトル\tタイトルバーの文字列を指定 [/t text]\n\
/i\tシステムトレイ内に起動\n\
/o\t常に手前に表示\n\
Expand Down
3 changes: 2 additions & 1 deletion locale/ko/Notepad2.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,7 @@ BEGIN
/l[o|p]\t수정된 파일을 자동으로 다시 불러옵니다.\n\
/q\t프롬프트없이 새 파일을 강제로 생성합니다.\n\
/ro\t파일을 읽기 전용 모드로 엽니다.\n\
/p\tPrint file with default printer and options.\n\
/s 이름\t지정된 구문 체계를 선택합니다.\n\
/d\t텍스트 파일 구성표를 선택합니다.\n\
/h\t웹 소스 코드 체계를 선택합니다.\n\
Expand All @@ -1856,7 +1857,7 @@ BEGIN
/b\t새 붙여넣기 보드를 열어 클립보드 항목을 수집합니다.\n\
/n\t항상 새 창을 엽니다 (/ns 단일 파일 인스턴스).\n\
/r\t창을 재사용합니다 (/rs 단일 파일 인스턴스).\n\
/p\t창 위치 및 크기를 설정합니다 (/p0, /ps, /pf,l,t,r,b,m).\n\
/p<flag>\t창 위치 및 크기를 설정합니다 (/p0, /ps, /pf,l,t,r,b,m).\n\
/t title\t창 제목을 설정합니다.\n\
/i\t트레이 아이콘으로 시작합니다.\n\
/o\t창을 맨 위에 둡니다.\n\
Expand Down
3 changes: 2 additions & 1 deletion locale/pt-BR/Notepad2.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,7 @@ file\tMust be the last argument, no quoted spaces by default.\n\
/l[o|p]\tAuto-reload modified files.\n\
/q\tForce creation of new files without prompt.\n\
/ro\tOpen file in read only mode.\n\
/p\tPrint file with default printer and options.\n\
/s name\tSelect specified syntax scheme.\n\
/d\tSelect Text File scheme.\n\
/h\tSelect Web Source Code scheme.\n\
Expand All @@ -1856,7 +1857,7 @@ file\tMust be the last argument, no quoted spaces by default.\n\
/b\tOpen new paste board to collect clipboard entries.\n\
/n\tAlways open a new window (/ns single file instance).\n\
/r\tReuse window (/rs single file instance).\n\
/p\tSet window position and size (/p0, /ps, /pf,l,t,r,b,m).\n\
/p<flag>\tSet window position and size (/p0, /ps, /pf,l,t,r,b,m).\n\
/t title\tSet window title.\n\
/i\tStart as tray icon.\n\
/o\tKeep window on top.\n\
Expand Down
3 changes: 2 additions & 1 deletion locale/zh-Hans/Notepad2.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,7 @@ BEGIN
/l[o|p]\t自动重载修改的文件。\n\
/q\t强制创建新文件而不提示。\n\
/ro\t以只读模式打开文件。\n\
/p\t使用默认打印机和选项打印文件。\n\
/s 名称\t选择指定的文件类型。\n\
/d\t指定为 文本文件。\n\
/h\t指定为 Web 源代码。\n\
Expand All @@ -1856,7 +1857,7 @@ BEGIN
/b\t打开新的粘贴板来接收剪贴板中的内容。\n\
/n\t始终打开一个新窗口 (/ns 单文件实例模式)。\n\
/r\t重用窗口 (/rs 单文件实例模式)。\n\
/p\t设置窗口大小和位置 (/p0, /ps, /pf,l,t,r,b,m)。\n\
/p<标记>\t设置窗口大小和位置 (/p0, /ps, /pf,l,t,r,b,m)。\n\
/t 标题\t设置窗口标题。\n\
/i\t启动时最小化到托盘。\n\
/o\t保持在最前面。\n\
Expand Down
3 changes: 2 additions & 1 deletion locale/zh-Hant/Notepad2.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,7 @@ BEGIN
/l[o|p]\t自動載入修改的檔案。\n\
/q\t強制建立新檔案而不提示。\n\
/ro\t以唯讀模式打開檔。\n\
/p\t使用預設印表機和選項列印檔案。\n\
/s 名稱\t選擇指定的檔案型態。\n\
/d\t指定為 文字檔案。\n\
/h\t指定為 Web 原始碼。\n\
Expand All @@ -1856,7 +1857,7 @@ BEGIN
/b\t開啟新的貼上簿來接收剪貼簿中的內容。\n\
/n\t始終開啟新視窗 (/ns 單個實體模式)。\n\
/r\t重用視窗 (/rs 單個實體模式)。\n\
/p\t設定視窗大小與位置 (/p0, /ps, /pf,l,t,r,b,m)。\n\
/p<標記>\t設定視窗大小與位置 (/p0, /ps, /pf,l,t,r,b,m)。\n\
/t 標題\t設定視窗標題。\n\
/i\t啟動時最小化到托盤。\n\
/o\t保持在最前面。\n\
Expand Down
1 change: 1 addition & 0 deletions src/Notepad2.c
Original file line number Diff line number Diff line change
Expand Up @@ -6331,6 +6331,7 @@ CommandParseState ParseCommandLineOption(LPWSTR lp1, LPWSTR lp2) {
break;

case L'Z':
// skip path for Notepad.exe
ExtractFirstArgument(lp2, lp1, lp2);
flagMultiFileArg = TripleBoolean_False;
notepadAction = NotepadReplacementAction_Default;
Expand Down
3 changes: 2 additions & 1 deletion src/Notepad2.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,7 @@ file\tMust be the last argument, no quoted spaces by default.\n\
/l[o|p]\tAuto-reload modified files.\n\
/q\tForce creation of new files without prompt.\n\
/ro\tOpen file in read only mode.\n\
/p\tPrint file with default printer and options.\n\
/s name\tSelect specified syntax scheme.\n\
/d\tSelect Text File scheme.\n\
/h\tSelect Web Source Code scheme.\n\
Expand All @@ -1856,7 +1857,7 @@ file\tMust be the last argument, no quoted spaces by default.\n\
/b\tOpen new paste board to collect clipboard entries.\n\
/n\tAlways open a new window (/ns single file instance).\n\
/r\tReuse window (/rs single file instance).\n\
/p\tSet window position and size (/p0, /ps, /pf,l,t,r,b,m).\n\
/p<flag>\tSet window position and size (/p0, /ps, /pf,l,t,r,b,m).\n\
/t title\tSet window title.\n\
/i\tStart as tray icon.\n\
/o\tKeep window on top.\n\
Expand Down

0 comments on commit a40501f

Please sign in to comment.