Skip to content

Commit

Permalink
Merge pull request #7 from neroist/master
Browse files Browse the repository at this point in the history
Fix #6 + other miniscule changes/fixes to help cmd
  • Loading branch information
Ethosa authored Jun 10, 2024
2 parents c1a24db + 3d4c9f7 commit c5c1981
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/happyx_native/hpxnative.nim
Original file line number Diff line number Diff line change
Expand Up @@ -70,37 +70,37 @@ when isMainModule:
of "":
quit(helpMessage())
of "init":
styledEcho fgBlue, "HappyX Native", fgMagenta, " init ", fgWhite, " command creates app project."
styledEcho fgBlue, "HappyX Native", fgMagenta, " init ", fgWhite, "~ ", fgGreen, "Create new Happyx Native project."
styledEcho "\nUsage:"
styledEcho fgMagenta, " hpx-native init\n"
styledEcho "Arguments:"
styledEcho fgBlue, align("name", 4), fgWhite, " - project name."
styledEcho fgBlue, align("name", 6), fgWhite, " - project name."
of "build":
styledEcho fgBlue, "HappyX Native", fgMagenta, " build ", fgWhite, " command builds app."
styledEcho fgBlue, "HappyX Native", fgMagenta, " build ", fgWhite, "~ ", fgGreen, "Build & compile Happyx Native app."
styledEcho "\nUsage:"
styledEcho fgMagenta, " hpx-native build\n"
styledEcho "Optional arguments:"
styledEcho fgBlue, align("target", 14), fgWhite, " - build target. By default target is your OS."
styledEcho fgBlue, align("target", 14), fgWhite, " - build target. Defaults to the current OS."
styledEcho align("", 14), " Possible targets:"
styledEcho align("", 14), " - windows (win);"
styledEcho align("", 14), " - linux (unix);"
styledEcho align("", 14), " - macosx (mac, macos);"
styledEcho align("", 14), " - android."
styledEcho align("", 14), " - windows (win)"
styledEcho align("", 14), " - linux (unix)"
styledEcho align("", 14), " - macosx (mac, macos)"
styledEcho align("", 14), " - android"
styledEcho fgBlue, align("no-x86_64", 14), fgWhite, " - disable building for x86_64 arch (android only)"
styledEcho fgBlue, align("no-x86", 14), fgWhite, " - disable building for x86 arch (android only)"
styledEcho fgBlue, align("no-armeabi-v7a", 14), fgWhite, " - disable building for armeabi-v7a arch (android only)"
styledEcho fgBlue, align("no-arm64-v8a", 14), fgWhite, " - disable building for arm64-v8a arch (android only)"
styledEcho fgBlue, align("release", 14), fgWhite, " - enable release build"
styledEcho fgBlue, align("opt", 14), fgWhite, " - Nim compilation option"
styledEcho fgBlue, align("", 14), fgWhite, " Possible values:"
styledEcho fgBlue, align("", 14), fgWhite, " - size (optimize build size);"
styledEcho fgBlue, align("", 14), fgWhite, " - speed (optimize app speed);"
styledEcho fgBlue, align("", 14), fgWhite, " - none (no optimizations, by default)."
styledEcho fgBlue, align("", 14), fgWhite, " - size (optimize build size)"
styledEcho fgBlue, align("", 14), fgWhite, " - speed (optimize app speed)"
styledEcho fgBlue, align("", 14), fgWhite, " - none (no optimizations, by default)"
else:
styledEcho fgRed, "Unknown subcommand: ", fgWhite, subcmdHelp
quit(QuitSuccess)
of "":
quit(dispatchmainCommand(cmdline = pars[0..^1]))
quit(mainCommand(pars[0] in ["-v", "--version"]))
else:
styledEcho fgRed, styleBright, "Unknown subcommand: ", fgWhite, subcmd
styledEcho fgYellow, "Use ", fgMagenta, "hpx_native help ", fgYellow, "to get all commands"
Expand Down

0 comments on commit c5c1981

Please sign in to comment.