diff --git a/include/source.h b/include/source.h index 0b7601e..2af14cc 100644 --- a/include/source.h +++ b/include/source.h @@ -5,8 +5,8 @@ * | Heng Guo <2085471348@qq.com> * Contributors : Shengwei Chen <414685209@qq.com> * | - * Created on : <2023-08-29> - * Last modified : <2024-09-14> + * Created On : <2023-08-29> + * Last Modified : <2024-09-14> * * 镜像站与换源信息 * ------------------------------------------------------------*/ @@ -21,9 +21,9 @@ typedef struct MirrorSite_t { // #define Big_File_ubuntu "/indices/md5sums.gz" 这个是错的 #define Big_File_ctan "/systems/texlive/Images/texlive.iso" // 4.8GB -#define Big_File_debian "/ls-lR.gz" // 13.9 MB +#define Big_File_debian "/ls-lR.gz" // 13.9MB #define Big_File_archlinux "/iso/latest/archlinux-x86_64.iso" // 800MB 左右 -#define Big_File_deepin "/20.9/deepin-desktop-community-20.9-amd64.iso" // 4GB左右 +#define Big_File_deepin "/20.9/deepin-desktop-community-20.9-amd64.iso" // 4GB 左右 /** diff --git a/src/chsrc-main.c b/src/chsrc-main.c index b9c71e7..525dcfb 100644 --- a/src/chsrc-main.c +++ b/src/chsrc-main.c @@ -620,7 +620,7 @@ main (int argc, char const *argv[]) { CliOpt_DryRun = true; } - else if (xy_streql (argv[i], "-para") + else if ( xy_streql (argv[i], "-para") || xy_streql (argv[i], "-parallel") || xy_streql (argv[i], "-paralel")) { @@ -631,13 +631,13 @@ main (int argc, char const *argv[]) CliOpt_NoColor = true; xy_enable_color = false; } - else if (xy_streql (argv[i], "-h") + else if ( xy_streql (argv[i], "-h") || xy_streql (argv[i], "-help") || xy_streql (argv[i], "--help")) { command = "help"; /* 交到下方处理 */ } - else if (xy_streql (argv[i], "-v") + else if ( xy_streql (argv[i], "-v") || xy_streql (command, "-version") || xy_streql (command, "--version")) { @@ -666,7 +666,7 @@ main (int argc, char const *argv[]) } /* chsrc help */ - if (xy_streql (command, "h") + if ( xy_streql (command, "h") || xy_streql (command, "-h") || xy_streql (command, "help") || xy_streql (command, "-help") @@ -677,7 +677,7 @@ main (int argc, char const *argv[]) } /* chsrc -v */ - else if (xy_streql (command, "-v") + else if ( xy_streql (command, "-v") || xy_streql (command, "-version") || xy_streql (command, "--version") || xy_streql (command, "ver") @@ -688,7 +688,7 @@ main (int argc, char const *argv[]) } /* chsrc list */ - else if (xy_streql (command, "list") + else if ( xy_streql (command, "list") || xy_streql (command, "l") || xy_streql (command, "ls")) { @@ -732,7 +732,7 @@ main (int argc, char const *argv[]) #define MSG_CN_USE_LIST_TARGETS "使用 chsrc list targets 查看所有支持的目标" /* chsrc measure */ - else if (xy_streql (command, "measure") + else if ( xy_streql (command, "measure") || xy_streql (command, "mea") || xy_streql (command, "m") || xy_streql (command, "cesu") @@ -755,7 +755,7 @@ main (int argc, char const *argv[]) /* chsrc get */ - else if (xy_streql (command, "get") + else if ( xy_streql (command, "get") || xy_streql (command, "g")) { if (argc < cli_arg_Target_pos) @@ -772,7 +772,7 @@ main (int argc, char const *argv[]) } /* chsrc set */ - else if (xy_streql (command, "set") + else if ( xy_streql (command, "set") || xy_streql (command, "s")) { if (argc < cli_arg_Target_pos) @@ -796,7 +796,7 @@ main (int argc, char const *argv[]) } /* chsrc reset */ - else if (xy_streql (command, "reset") + else if ( xy_streql (command, "reset") || xy_streql (command, "rest") || xy_streql (command, "r")) { @@ -816,7 +816,7 @@ main (int argc, char const *argv[]) } /* chsrc issue */ - else if (xy_streql (command, "issue") + else if ( xy_streql (command, "issue") || xy_streql (command, "issues") || xy_streql (command, "isue") || xy_streql (command, "i"))