neuron-explorer
Qwen3.5‑4B 전용 조향형 뉴런 탐색기, 모든 MLP 뉴런을 밀어 결과를 보관·탐색
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Clasp is a modern C++ library designed for building powerful command-line applications. Inspired by Go's Cobra library, Clasp offers a straightforward API to define and organize commands, parse flags, and manage CLI application lifecycles.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
Clasp is a modern C++ library designed for building powerful command-line applications. Inspired by Go's Cobra library, Clasp offers a straightforward API to define and organize commands, parse flags, and manage CLI application lifecycles.README 전문 보기 ↗English | 简体中文
Clasp is a modern C++ library designed for building powerful command-line applications. Inspired by Go's Cobra library, Clasp offers a straightforward API to define and organize commands, parse flags, and manage CLI application lifecycles.
NoOptDefVal), and extra helpers like bytes/count/IP/CIDR/IPNet/IPMask/URL.vscode, sublime, iterm2) and --color=auto|always|never.TraverseChildren, sorted help output, examples, and custom help/usage/version templates.__complete directives and configurable completion command names..env-style key=value, .ini/.cfg with [section] mapping, and basic nested-object flatten for .json/.toml/.yaml). Unknown extensions are rejected.Flag parsing is intentionally pflag-like: --k=v, -k=v, short grouping (-abc), bool negation (--no-foo), repeated occurrences, and optional values are all supported. When command traversal is enabled, Clasp keeps subcommand discovery separate from optional flag values, so a token that names a subcommand is not consumed as the value for a NoOptDefVal flag.
git clone https://github.com/cuihairu/clasp.git
cd clasp
cmake -S . -B build
cmake --build build --parallel
ctest --test-dir build --output-on-failure
cmake --install build
# or: cmake --install build --prefix /your/prefix
To build/install only the library (no examples/CTest), configure with -DCLASP_BUILD_EXAMPLES=OFF.
#include "clasp/clasp.hpp"
#include <iostream>
#include <string>
#include <vector>
int main(int argc, char** argv) {
clasp::Command rootCmd("app", "A brief description of your application");
clasp::Command printCmd("print", "Prints a message to the console");
printCmd
.withFlag("--message", "-m", "message", "Message to print", std::string("Hello, World!"))
.action([](clasp::Command& /*cmd*/, const clasp::Parser& parser, const std::vector<std::string>& /*args*/) {
const auto message = parser.getFlag<std::string>("--message", "Hello, World!");
std::cout << message << "\n";
return 0;
});
rootCmd.addCommand(std::move(printCmd));
return rootCmd.run(argc, argv);
}
./app print --message "Hello, Clasp!"
Hello, Clasp!
EXAMPLES.md: index of all runnable examples and what they demonstrate.COMPAT.md: what “Cobra-like” means for this project.CHANGELOG.md: notable changes and release notes.include/clasp/ (clasp/clasp.hpp includes the main API).docs/: VuePress site sources (optional).CLI > env > config file > default.configFile("path") hardwires a config path; configFileFlag("config") lets a flag such as --config supply it..env, .ini, .cfg, .json, .toml, and .yaml/.yml. Unknown extensions are rejected.__complete / __completeNoDesc commands.markFlagFilename(...) and markPersistentFlagFilename(...), or markFlagDirname() and markPersistentFlagDirname().ctest --test-dir build -C Debug --output-on-failure.The test suite is broad, but coverage report generation depends on toolchain support:
-DCLASP_ENABLE_COVERAGE=ON and use your usual gcov/lcov flow.CLASP_ENABLE_COVERAGE does not instrument MSVC builds. Use Visual Studio code coverage tooling if you need a Windows coverage report.cd docs
npm install
npm run dev
Clasp follows SemVer. The version in CMakeLists.txt is kept consistent with the CLASP_VERSION_* macros in include/clasp/clasp.hpp.
After installing (or setting CMAKE_PREFIX_PATH to your install prefix), consume Clasp via:
find_package(clasp CONFIG REQUIRED)
target_link_libraries(myapp PRIVATE clasp::clasp)
Issues and PRs are welcome.
Clasp is licensed under the Apache License 2.0. See LICENSE for more details.