ruby - Call a command-line-argument from inside a method? -


I have a problem which is calling the command-line argument from within a method.

This is a snippet from my script in the first few operations, where the argument is passed as a method option / parameter, the logic value is mapped in the right way. In the previous operation, where the logic is called inside the law, the argument is passed as a text. Is there a specific syntax? Do I have to remember to call the variable inside a method?

  sets the command-line argument as # global variable proof_name = argv [0] # logic value (proof_name) has been successfully listed below as a # option / parameter = Processor. Enviving Container (proof_name) proof custom_metadata = {'barcode' => Proof_name} proof. Adfile (proof_path) proof. Instead of calling Save # logic values ​​(proof_name), the method # is reading the proof as text, so the script is searching for # "proof_name" and not the price that I specify from the command-line # at run-time All_files = current_case.search ('proof-metadata: proof_name and in-text: 1')    

Yes, you are not forgetting string launches.

  "Evidence-Metadata: # {proof_name} and has text in it: 1"    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -