{"id":19552465,"url":"https://github.com/pixeldroid/optionparser-ls","last_synced_at":"2026-03-19T10:26:14.264Z","repository":{"id":25324237,"uuid":"28751228","full_name":"pixeldroid/optionparser-ls","owner":"pixeldroid","description":"a simple option parser for Loom commandline apps","archived":false,"fork":false,"pushed_at":"2017-09-19T02:38:24.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-20T08:02:51.073Z","etag":null,"topics":["argument-parser","cli","commandline-apps","library","loomlib","loomscript","option","option-parser","optionparser-library"],"latest_commit_sha":null,"homepage":null,"language":"LoomScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pixeldroid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-03T18:26:21.000Z","updated_at":"2023-02-13T19:31:43.000Z","dependencies_parsed_at":"2022-08-24T02:30:30.118Z","dependency_job_id":null,"html_url":"https://github.com/pixeldroid/optionparser-ls","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/pixeldroid/optionparser-ls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixeldroid%2Foptionparser-ls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixeldroid%2Foptionparser-ls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixeldroid%2Foptionparser-ls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixeldroid%2Foptionparser-ls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pixeldroid","download_url":"https://codeload.github.com/pixeldroid/optionparser-ls/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixeldroid%2Foptionparser-ls/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29995910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["argument-parser","cli","commandline-apps","library","loomlib","loomscript","option","option-parser","optionparser-library"],"created_at":"2024-11-11T04:18:15.939Z","updated_at":"2026-03-02T08:02:41.059Z","avatar_url":"https://github.com/pixeldroid.png","language":"LoomScript","readme":"optionparser-ls\n===============\n\na simple option parser for [Loom][loom-sdk] commandline apps\n\n- [installation](#installation)\n- [usage](#usage)\n- [building](#building)\n- [contributing](#contributing)\n\n\n## installation\n\nDownload the library into its matching sdk folder:\n\n    $ curl -L -o ~/.loom/sdks/sprint34/libs/OptionParser.loomlib \\\n        https://github.com/pixeldroid/optionparser-ls/releases/download/v2.1.1/OptionParser-sprint34.loomlib\n\nTo uninstall, simply delete the file:\n\n    $ rm ~/.loom/sdks/sprint34/libs/OptionParser.loomlib\n\n\n## usage\n\n0. declare a reference to the OptionParser loomlib in your `.build` file:\n    ```ls\n    \"references\": [\n        \"System\",\n        \"OptionParser\"\n    ],\n    ```\n0. import `pixeldroid.cli.OptionParser`\n0. instantiate a new `pixeldroid.cli.OptionParser` and call the `parse()` method on it\n0. retrieve `pixeldroid.cli.Option` items via the `getOption()` method of OptionParser\n\n### OptionParserDemo\n\nsee an example of using the OptionParser here:\n\n* [OptionParserDemoCLI.build][OptionParserDemoCLI.build]\n* [OptionParserDemoCLI.ls][OptionParserDemoCLI.ls]\n\nyou can compile and run the demo from the command line:\n\n    $ cd test\n    $ ~/.loom/sdks/sprint34/bin/osx-x64/tools/lsc OptionParserDemoCLI.build\n    $ mv bin/OptionParserDemoCLI.loom bin/Main.loom\n    $ ~/.loom/sdks/sprint34/bin/osx-x64/tools/loomexec // --help\n    $ ~/.loom/sdks/sprint34/bin/osx-x64/tools/loomexec // --optionA arg1 arg2 -b\n\nor use Rake:\n\n    $ rake cli['--optionA arg1 arg2 -b']\n\n\n## building\n\nfirst, install [loomtasks][loomtasks] and the [spec-ls library][spec-ls]\n\n### compiling from source\n\n    $ rake lib:install\n\nthis will build the OptionParser library and install it in the currently configured sdk\n\n### running tests\n\n    $ rake test\n\nthis will build the OptionParser library, install it in the currently configured sdk, build the test app, and run the test app.\n\n\n## contributing\n\nPull requests are welcome!\n\n[loom-sdk]: https://github.com/LoomSDK/LoomSDK \"a native mobile app and game framework\"\n[loomtasks]: https://github.com/pixeldroid/loomtasks \"Rake tasks for working with loomlibs\"\n[OptionParserDemoCLI.build]: ./cli/src/OptionParserDemoCLI.build \"build file for the demo\"\n[OptionParserDemoCLI.ls]: ./cli/src/demo/OptionParserDemoCLI.ls \"source file for the demo\"\n[spec-ls]: https://github.com/pixeldroid/spec-ls \"a simple spec framework for Loom\"\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixeldroid%2Foptionparser-ls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixeldroid%2Foptionparser-ls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixeldroid%2Foptionparser-ls/lists"}