# Passing command line parameters

**URL:** <https://forum.legato.io/t/passing-command-line-parameters/3976>\
**Category:** Uncategorized\
**Created:** [December 29, 2018, 6:42pm UTC](https://forum.legato.io/t/passing-command-line-parameters/3976 "2018-12-29T18:42:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deadpoolcode](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/deadpoolcode/32/382_2.png) [@deadpoolcode](https://forum.legato.io/u/deadpoolcode)\
**Post date:** [December 29, 2018, 6:42pm UTC](https://forum.legato.io/t/passing-command-line-parameters/3976/1 "2018-12-29T18:42:36Z")

</div>

Hello, I created my application with command line parameters support:

```
LE_INFO("Start SMS Sample!");
// Register a function to be called if -h or --help appears on the command-line.
le_arg_SetFlagCallback(PrintHelp, "h", "help");

// Perform command-line argument processing.
le_arg_Scan();

```

how do I cal the application via legato with the command line parameters?

sms.adef:

executables:  
{  
sms = ( smsClient )  
}

processes:  
{  
run:  
{  
( sms )  
}  
}

start: manual

bindings:  
{  
sms.smsClient.le\_sms → modemService.le\_sms  
}

---

<div class="post-metadata">

**Author:** ![deadpoolcode](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/deadpoolcode/32/382_2.png) [@deadpoolcode](https://forum.legato.io/u/deadpoolcode)\
**Post date:** [December 29, 2018, 6:45pm UTC](https://forum.legato.io/t/passing-command-line-parameters/3976/2 "2018-12-29T18:45:14Z")

</div>

issue resolved.

in this case the correct way would be:

app runProc sms --exe=sms – --help
