Groups
Groups
Sign in
Groups
Groups
NYCU NASA 課程討論區
Conversations
About
Send feedback
Help
[SA HW1] 請問關於argument_check 的測資說明
128 views
Skip to first unread message
張鈞博
unread,
Sep 23, 2025, 10:29:07 AM
Sep 23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NYCU NASA 課程討論區
Arbitrary argument position 這部分助教在講解評分的時候好像沒有詳細說明這部分我們需要達成甚麼目標?
賴羿茗
unread,
Sep 23, 2025, 10:43:42 AM
Sep 23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NYCU NASA 課程討論區
同學您好:
只需要確保腳本在有 -h 參數的情況會優先採用該 options (即使 -t 參數存在)
若還是不清楚歡迎同學繼續在討論區發問,謝謝。
albert...@gmail.com
在 2025年9月23日 星期二晚上10:29:07 [UTC+8] 的信中寫道:
張鈞博
unread,
Sep 23, 2025, 11:00:45 AM
Sep 23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NYCU NASA 課程討論區
[抱歉助教我按錯 應該要按回覆所有人 抱歉再寄第三次]
感謝助教回覆,不果我想問的意思是說 ./hw1.sh -h 執行是合法的嗎? -h options 裡面的功能是我們自由發揮嗎?
假設現在我還沒有設計 -h 裡面的功能
1
./hw1.sh -h
是合法的嗎? 需要show help message嗎?
2
./hw1.sh -t SYS_INFO | WORDLE | QUORDLE -h
中會優先採用該 options 的概念是甚麼呢?
charli...@nycu.edu.tw
在 2025年9月23日 星期二晚上10:43:42 [UTC+8] 的信中寫道:
賴羿茗
unread,
Sep 23, 2025, 11:11:43 AM
Sep 23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NYCU NASA 課程討論區
同學您好:
1. ./hw1.sh -h 是合法的,需要 show help message,詳情請見 spec p10~p11。
2. 在執行 ./hw1.sh -t WORDLE -h 時,只需當作 ./hw1.sh -h 處理即可。
希望這樣有回答到同學的問題,謝謝。
poposolo...@nycu.edu.tw
在 2025年9月23日 星期二晚上11:00:45 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages