{"id":17312889,"url":"https://github.com/9seconds/ccli","last_synced_at":"2025-03-27T01:16:19.847Z","repository":{"id":142207095,"uuid":"2199596","full_name":"9seconds/CCli","owner":"9seconds","description":"CleanCli is small, fast, convenient and flexible alternative to Apache Commons Cli","archived":false,"fork":false,"pushed_at":"2011-08-20T12:52:52.000Z","size":272,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T06:41:36.866Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/9seconds.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-08-12T22:53:41.000Z","updated_at":"2013-10-08T18:46:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"ca4c9484-99c7-4f10-ab7b-8617ac33760a","html_url":"https://github.com/9seconds/CCli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9seconds%2FCCli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9seconds%2FCCli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9seconds%2FCCli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9seconds%2FCCli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/9seconds","download_url":"https://codeload.github.com/9seconds/CCli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245761303,"owners_count":20667895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-15T12:44:56.640Z","updated_at":"2025-03-27T01:16:19.821Z","avatar_url":"https://github.com/9seconds.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"CleanCLI library\n================\n\n_Please note that this help is not sufficient, it contains examples of usage\nonly. I will write complete guide ASAP._\n\nUsage examples\n--------------\n```java\n// java Lame --vbr-new -V0 --noreplaygain -q 0 -m j awesometune.wav awesomefile.mp3\nimport org.aerialsounds.ccli.*\nimport java.util.Iterator;\n\npublic class Lame {\n    static public void main(String[] args) {\n        CCli repository = new CCli(args);\n\n        Option vbrNew = repository.createOption(\n            OptionTypes.LONG,\n            \"vbr-new\",\n            false,\n            ValueTypes.BOOLEAN,\n            \"Detected new mode for VBR\"\n        );\n        Option useReplayGain = repository.createOption(\n            OptionTypes.CUSTOM,\n            \"--noreplaygain\",\n            false,\n            ValueTypes.BOOLEAN,\n            \"Does ReplayGain should be used?\"\n        );\n        Option vBitrate = repository.createOption(\n            OptionTypes.SHORT,\n            \"V\",\n            2,\n            ValueTypes.INTEGER,\n            \"Detects VBR quality algorithm\"\n        );\n        Option stereoMode = repository.createOption(\n            OptionTypes.SHORT,\n            \"m\",\n            'c',\n            ValueTypes.CHAR,\n            \"Detects stereo mode\"\n        );\n        Option qBitrate = repository.createOption(\n            OptionTypes.SHORT,\n            \"q\",\n            2,\n            ValueTypes.INTEGER,\n            \"Detects quality algorithm\"\n        );\n        Option preset = repository.createOption(\n            OptionTypes.LONG,\n            \"preset\",\n            \"normal\",\n            ValueTypes.STRING,\n            \"Detects encoding preset\"\n        );\n\n        try {\n            repository.parse();\n        }\n        catch ( CannotParse ) {\n            System.out.println(\"Cannot parse such commandline!\\n\");\n            System.out.pirntln(repository.help());\n        }\n\n        System.out.println(\"vbrNew = \" + (Boolean) vbrNew.getValue()); // vbrNew = true\n        System.out.println(\"useReplayGain = \" + (Boolean) useReplayGain.getValue()); // useReplayGain = true\n        System.out.println(\"stereoMode = \" + (Character) stereoMode.getValue()); // stereoMode = j\n        System.out.println(\"qBitrate = \" + (Integer) qBitrate.getValue()); // qBitrate = 0\n        System.out.println(\"vBitrate = \" + (Integer) vBitrate.getValue()); // vBitrate = 0\n        System.out.println(\"preset = \" + (String) preset.getValue()); // preset = normal\n\n        Iterator\u003cString\u003e appArgs = repository.getApplicationArguments();\n        System.out.println(\"inputFile is \" + appArgs.next()); // inputFile is awesometune.wav\n        System.out.println(\"outputFile is \" + appArgs.next()); // outputFile is awesomefile.mp3\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9seconds%2Fccli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F9seconds%2Fccli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9seconds%2Fccli/lists"}