Critter Posted January 24, 2013 Share Posted January 24, 2013 Basically, I have a script filter and a case statement based on the argument case 'addsite': $name = $argv[2]; $url = $argv[3]; $api = $argv[4]; $addsite_r = array(); if( !empty($name) && !empty($url) && !empty($api) ) { $addsiteResult = array(); $item = array( 'uid' => 'done', 'arg' => '', 'title' => $name . ' has been added.', 'subtitle' => '', 'icon' => 'icon.png' ); //------=-=-=-=[ echo } else { $addSiteInstructions = array(); $item = array( 'uid' => 'nothing', 'arg' => '', 'title' => 'Add a Newznab Site', 'subtitle' => 'Example: nzb addsite "{site name}" {url} {apikey}', 'icon' => 'icon.png' ); //------=-=-=-=[ echo } break; Typing "nzb addsite" triggers this: as it should, but as soon as I start to add anymore arguments, I lose my list Since I am still in the same "addsite" case statement, shouldn't my "match" stay visible until all the 3 arguments are added? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now